Jerome takes a math course and a science course for summer school. For every 5 hours Jerome spends studying math, he studies science for 4 hours. If Jerome spent a total of 45 hours studying last week, then how long did he study math?

Let's assume that Jerome studied math for x hours.

According to the given information, Jerome studies science for 4 hours for every 5 hours he studies math. This means that he studied science for 4/5 * x hours.

Since Jerome studied a total of 45 hours last week, we can set up the following equation:
x + 4/5x = 45

Combining like terms, we get:
9/5x = 45

To solve for x, we multiply both sides by 5/9:
x = 45 * 5/9
x = 25

Therefore, Jerome studied math for 25 hours.