Set B for the number of boys on the first day. Set G for the number of girls.
so
(A for all), where
(sixty percent).
Six girls move

and six boys come

And now the boys make up 75% of the class

Using
and
, plug in .6A for B:

Subtract .6A from both sides:

Now divide both sides by .15

So there were 40 kids in all on the first day. 60% of them were boys, so:


40-24=G

So on the first day of school, there were 24 boys and 16 girls.