To compute for the total number of students in the class, you have to divide the fraction of the students who said they like word problems with the number of students who said they like word problems.
30 students / ¾ of the students said they like word problems = 40 students are there in the class