Let us assume the number of boys = B and number of girls = G.According to question,B + G = 30Lets us assume total weight of boys = W1 and total weight of girls = W2average weight of boys = total weight of boys/number of boystotal weight of boys/number of boys = 20W1/B = 20W1 = 20Baverage weight of girls = total weight of girls/number of girls25 = W2/GW2 = 25GData is not sufficient to solve the equation.since we do not know either the average weight of the whole class or the ratio of no. of boys to girls.