When a class took a math test, 15% of the class failed, 25% made some mistakes (but didn???t fail), and 24 students got perfect scores. How many students were in the class?