The average on a test was 61% for 100 people. Let's say there were 100 points possible on the test.
0.61(100)(100) = 6100 points earned total out of 10000 points possible
Group A has 24 people and averaged 76%.
0.76(100)(24) = 1824 points earned by Group A
6100 - 1824 = 4276 points earned by Group B
Group B consists of 76 people.
4276/((76)(100) = 0.563
So Group B's average was 56.3%