In a unit test, the average score of class 51 is 96. The average score of class 52 is 94. The total average score of the two classes is 95.04?

In a unit test, the average score of class 51 is 96. The average score of class 52 is 94. The total average score of the two classes is 95.04?

Let's have X people in a and y people in B
96x+94y=95.04*(x+y)
0.96x=1.04y
x:y=13:12