Emily is working on a school project and needs to gather some data. She surveys a total of x students in her class about their favorite subjects. If she finds that 40% of them prefer Science, and the number of students who prefer Science is 12, what is the total number of students, x, that Emily surveyed?