30 (the number of students in the class) divided by 15 (the sum of the ratio)
30/15= 2
I then multiplied 8 from the "girls" part of the ratio by 2 (the quotient of 30/15) and got 16. Then I subtracted 16 from 30 and got 14, which s the number of boys in the class.