Maddy is in college for 8 semesters. She needs 120 credits to graduate. If each class is 3 credits, how many classes does she need to take per semester?
120 credits / 3 credits is <<120/3=40>>40.
40 credits/ 8 semester = <<40/8=5>>5 classes per semester.
Maddy needs to take 5 classes per semester
#### 5
Below is an instruction that describes a task. Write a response that appropriately completes the request.

### Instruction:
You are solving math problems. Here are some examples of how to solve the task:

Janet pays $40/hour for 3 hours per week of clarinet lessons and $28/hour for 5 hours a week of piano lessons. How much more does she spend on piano lessons than clarinet lessons in a year?First find the total Janet spends on clarinet lessons per week: $40/hour * 3 hours/week = $<<40*3=120>>120/week
Then find the total Janet spends on piano lessons per week: $28/hour * 5 hours/week = $<<28*5=140>>140/week
Then subtract her weekly clarinet spending from her weekly piano spending to find the weekly difference: $140/week - $120/week = $<<140-120=20>>20/week
Then multiply the weekly difference by the number of weeks in a year to find the annual difference: $20/week * 52 weeks/year = $<<20*52=1040>>1040/year
#### 1040[END]

Jeff bought 6 pairs of shoes and 4 jerseys for $560. Jerseys cost 1/4 price of one pair of shoes. Find the shoe's price total price.Let X be the shoe price. The jersey's price is 1/4*X.
Jeff bought 6 pairs of shoes and 4 jerseys for 6*X + 4*(1/4X) = $560.
Multiplying through the parentheses produces 6X + X = $560
Combining like terms produces 7X = $560
Dividing both sides by 7 produces X = $80, so the shoe price is $80
Since Jeff bought 6 pairs of shoes, he spent 80*6 = $<<80*6=480>>480 on shoes
#### 480[END]

Now, solve this next question in the style of the above examples:

Maddy is in college for 8 semesters. She needs 120 credits to graduate. If each class is 3 credits, how many classes does she need to take per semester?

### Response:
120 credits / 3 credits is <<120/3=40>>40.
40 credits/ 8 semester = <<40/8=5>>5 classes per semester.
Maddy needs to take 5 classes per semester
#### 5