The rest of the boys were 4/5X, and the girls went to 8, so it was 62-X-8.
The rest are equal.
4 5X = 62 X 8
9/5X=54
X=30
There are 30 boys and 32 girls.