And now it's x+6.
Girls are x/3 and (x+6)/2 respectively.
So x/3+6=(x+6)/2.
Multiply both sides by 6.
2x+36=3(x+6)=3x+ 18
3x-2x=36- 18
x= 18
So the original 18 people.