Teach me a math problem

If the number of students in the calligraphy class is X, there are (1+ 1/8)X students in the dance class and (1+1/8) X-14 students in the painting class, so the sum of them is X+(/kloc). So there are 17 1 people in the dance class, 152 people in the calligraphy class and 157 people in the painting class.