To calculate how much Garrett makes for the week based on the hours worked each day and the provided piecewise function, we can break it down day by day.
The piecewise function defines his pay as:
- f(x) = 14x for 0 ≤ x ≤ 8
- f(x) = 16x - 16 for 8 < x ≤ 24
Now, we will calculate his pay for each day:
-
Monday: 12 hours
- More than 8 hours, so we use the second part of the function:
- f(12) = 16(12) - 16 = 192 - 16 = $176
-
Tuesday: 8 hours
- 8 hours or less, so we use the first part of the function:
- f(8) = 14(8) = $112
-
Wednesday: 8 hours
- 8 hours or less, so we use the first part of the function:
- f(8) = 14(8) = $112
-
Thursday: 8 hours
- 8 hours or less, so we use the first part of the function:
- f(8) = 14(8) = $112
-
Friday: 10 hours
- More than 8 hours, so we use the second part of the function:
- f(10) = 16(10) - 16 = 160 - 16 = $144
Now, let's calculate the total amount Garrett will make for the week:
\[ \text{Total} = 176 + 112 + 112 + 112 + 144 = 656 \]
Therefore, Garrett will make $656 for the week.