On a math test, 30 students earned a B. This number is exactly 40% of the total number of students in the class. How many students are in the class