Answer:
35
Step-by-step explanation:
At the beginning, the ratio number of girls : number of boys is
(1)
where
G is the number of girls
B is the number of boys
Later, seven more girls join the class, and two boys drop the class, so the new numbers of girls and boys are

and

We are also told that now the ratio is

Substituting the two equations above,
(2)
Also, from eq.(1) we can write

And substituting into (2) and re-arranging, we can find B:

And so

Therefore, the total number of students in the class BEFORE is

And so, after we have:

So the new number of students is
