The ratio of the numbers of boys and girls in a school was 5 : 3. Some new boys and girls were admitted to the school, in the ratio 5 : 7. At this, the total number of students in the school became 1,200 and the ratio of boys to girls changed to 7: 5. What was the number of students in the school before new admissions?