Final answer:
Judy worked out for a total of 145 minutes for the week by attending all of the gym's workout sessions, leaving 5 minutes early during the 30-minute sessions and 10 minutes early during the 45-minute sessions.
Step-by-step explanation:
To calculate the total minutes Judy worked out for the week, we need to determine the duration of each session and subtract the time she left early for each session.
For the 30-minute sessions, Judy left 5 minutes early, so she worked out for 30 - 5 = 25 minutes each time.
For the 45-minute sessions, Judy left 10 minutes early, so she worked out for 45 - 10 = 35 minutes each time.
There are 2 sessions of 45 minutes and 3 sessions of 30 minutes each week, so the total workout time for Judy is
(2 * 35) + (3 * 25) = 70 + 75
= 145 minutes.