5/4 = 75/g....cross multiply because this is a proportion
5g = 300
g = 300/5
g = 60
so in 2nd semester, there were 75 students in art class and 60 students in gym class....for a total of 135 students.
1st semester....ratio was 2:7...added = 9
art : 2/9(135) = 270/9 = 30 <=== art class had 30
gym: 7/9(135) = 945/9 = 105 <=== gym class had 105