Question:
The number of boys and girls in a hall was in the ratio 4 : 5.
After 170 boys and 20% of the girls went back to their classrooms, the ratio of the number of boys to the number of girls in the hall became 1 : 2. How many children were there in the hall in the end?