First, let's see what we are told:
1. The ratio of boys to girls is 3:2. Turn that into an equation
2b=3g2b=3g
2. If two girls are added, the number will be equal
b=g+2b=g+2
Now, substitute the second equation into the first:
2(g+2)=3g2(g+2)=3g
multiply
2g+4=3g2g+4=3g
subtract 2g
4=g4=g
So there are 4 girls and, thus 6 boys