The table below summarizes the favorite subjects of students in a class. If a student is chosen at random from the class, what is the probability that the student's favorite subject is Math?
| Boys | Girls | Total | |
|---|---|---|---|
| Math | 10 | 15 | 25 |
| Science | 8 | 7 | 15 |
| Total | 18 | 22 | 40 |