In a class, each student likes either mathematics or science or both. The number of students who like mathematics and science are 248 and 200, respectively.
One-fourth of the students who like mathematics also like science. Find the total number of students in the class.