Solution:
Let the number of boys and girls in the class be and respectively. Then,
…(i)
We have,
Mean weight of boys
Mean weight of girls
Mean weight of all student
…(ii)
From (i) and (ii), we have = 100, = 50
Hence, there are 50 boys and 100 girls in the class.