There are 84 people in class 5 (1) and class 5 (2), 5 / 8 of class 5 (1) and 3 / 4 of class 5 (2), with a total of 58 people. How many people are there in each class

There are 84 people in class 5 (1) and class 5 (2), 5 / 8 of class 5 (1) and 3 / 4 of class 5 (2), with a total of 58 people. How many people are there in each class

84 × 3 / 4 = 63 (person)
(63-58) / (3 / 4-5 / 8) = 40 (person) --- A
84-40 = 44 (person)