### Instruction: Mary works in a restaurant a maximum of 45 hours. For the first 20 hours, she is paid $8 per hour. For each overtime hour, she is paid at a rate which is 25% higher than her regular rate. How much Mary can earn in a week?
Answer Choices: (A) 300 (B) 420 (C) 410 (D) 320 (E) 400 Please write a program to solve it.### Response: regular_hours = 20
overtime_hours = 45 - regular_hours
regular_rate = 8
overtime_rate = regular_rate * 1.25
regular_pay = regular_hours * regular_rate
overtime_pay = overtime_hours * overtime_rate
total_pay = regular_pay + overtime_pay
print(total_pay)