In Brock's class of 25 students, 15 students report that math is their favorite class and 40% of the students report that science is their favorite class. Show your work to explain how to determine whether more students prefer math or science.

To determine whether more students prefer math or science, we need to compare the number of students who report that math is their favorite class with the number of students who report that science is their favorite class.

Given information:
- Total number of students in the class: 25
- Number of students who report math as their favorite class: 15
- Percentage of students who report science as their favorite class: 40%

We can find the number of students who report science as their favorite class by calculating 40% of 25:
40% of 25 = (40/100) * 25 = 0.40 * 25 = 10

Therefore, 10 students report science as their favorite class.

To compare which subject has more students, we compare the numbers:
- Number of students who prefer math: 15
- Number of students who prefer science: 10

Since 15 is greater than 10, we can conclude that more students in Brock's class prefer math over science.