Boys account for 4 / 7 of the students in a school, and girls are 50 less than 7 / 8 of boys. How many students are there in this school?

Boys account for 4 / 7 of the students in a school, and girls are 50 less than 7 / 8 of boys. How many students are there in this school?

Let the number of students in the whole school be: X
Then the number of male students is 4x / 7 and the number of female students is 3x / 7;
The results are as follows: 3x / 7 = (4x / 7) * (7 / 8) - 50
x=700
So there are 700 students in this school