We can use the proportion from the survey to estimate the number of students that like math.
The survey proportion can be calculated as:

where x is the number of students in the survey that prefer maths and N is the total number of students surveyed. We then have a proportion of p=0.3: for every 100 students, we can estimate that 30 have maths as their favourite subject.
If the number of students is 300, we can estimate the number of students that prefer math by multiplying this proportion, p=0.3, by the total number of students, 300:

Answer: 90 students.