Functions: question 21 of 25
An ACT® Math practice question. Pick an answer to check it, or open the answer and the worked explanation.
The question
A parking garage charges dollars for hours of parking, where for , for , and for . Maya parked for 5.5 hours. Leo's charge was exactly 6 dollars less than Maya's charge. For how many hours did Leo park?
Choose an answer, then open the answer below to check it.
A place to start
Which piece of applies to a 5.5-hour stay?
Another hint
Find Maya's charge with the middle piece, then subtract 6 to get Leo's charge.
One more hint
Leo's charge is 12.5 dollars, which belongs to the middle piece. Set and solve for , remembering to undo the at the end.
Show the answer and explanation
Answer: B.3.5
Why B works
- Maya's 5.5 hours falls in , so .
- Leo's charge is dollars.
- A charge of 12.5 is between 5 and 20, so it comes from the middle piece: .
- Solve: , so and .
- Since 3.5 is inside , the correct choice is 3.5.
Why the other choices are wrong
- A. This solves to get and stops there. You still have to add 1 to find .
- C. This computes Maya's charge as , skipping the inside the parentheses. That makes both charges 3 dollars too high and Leo's time 1 hour too long.
- D. This reports the value of , which is 7.5 dollars, as the time. You still need to divide by 3 and add 1 to get hours.
The rule
For a piecewise function, choose the piece whose interval matches the input (or the output you need), then evaluate or solve with that piece.
Spot it next time
After solving with one piece of a piecewise function, check that your answer sits inside that piece's interval.