The ratio of class 61 to class 62 is 8:7. If eight students from class 61 are transferred to class 62, the ratio of class 61 to class 62 is 4:5, How many people are there in the two classes? Ask everyone to answer quickly! Who answers best, I will add the score to 50!

The ratio of class 61 to class 62 is 8:7. If eight students from class 61 are transferred to class 62, the ratio of class 61 to class 62 is 4:5, How many people are there in the two classes? Ask everyone to answer quickly! Who answers best, I will add the score to 50!

It turns out that the number of people in class 61 is half of the total number of people in two classes
8 ÷ (8 + 7) = 8 / 15
At present, the number of class 61 is half of the total number of the two classes
4 ÷ (4 + 5) = 4 / 9
There are two classes in common
8 ÷ (8 / 15-4 / 9) = 90 persons
It turns out that there are students in class 61
8 out of 90 × 15 = 48 persons
It turns out that there are students in class 62
90-48 = 42