There are 84 people in class 61 and class 62, 5 / 8 of class 61 and 3 / 4 of class 62. How many people are there in class 61

There are 84 people in class 61 and class 62, 5 / 8 of class 61 and 3 / 4 of class 62. How many people are there in class 61

If there are X students in class 61, there are (84-x) students in class 62
5/8X+(84-X)×3/4=58
X=40
Class 62 has: 84-40 = 44 people