Boys and girls

Can you find the total number of students in the school, given some information about ratios?

Problem

In September, the ratio of boys to girls in a school was 3:2.

By June, there were 80 fewer boys and 20 fewer girlsĀ in the school, and the ratio of boys to girls was 7:5.

What was the total number of students in the school in September?

This problem is adapted from the World Mathematics Championships