When a class took a math test, 15% of the class failed, 25, made a good score and 24 students got a perfect score. How many students were in the class?

Let x be the total number of students in the class.

Given that 15% of the class failed, 25 students made a good score, and 24 students got a perfect score, we can create the following equations:

0.15x = number of students who failed
0.25x = number of students who made a good score
0.24x = number of students who got a perfect score

Adding these three equations together, we get:

0.15x + 0.25x + 0.24x = x
0.64x = x
0.64x - x = 0
0.36x = 0
x = 0 / 0.36
x = 100

Therefore, there were 100 students in the class.