Set B for the number of boys on the first day. Set G for the number of girls.
so
Six girls move
and six boys come
And now the boys make up 75% of the class
Using
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