First, figure out the percentage of students that said math is their favorite subject in the 80 student sample.
[tex] \frac{24}{80} \times \frac{x}{100} \\ 80x = 2400 \\ x = 30 \\ 30\%[/tex]
Now, we multiply 300 by .3 to approximate how many students would choose math as their favorite subject
[tex]300 \times .3 = 90[/tex]
Estimating, 90 students would choose math as their favorite subject going off of the given data.