Skip to the page

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

FunctionsHarder

A parking garage charges P(t)P(t) dollars for tt hours of parking, where P(t)=5P(t) = 5 for 0<t≤10 < t \le 1, P(t)=5+3(t−1)P(t) = 5 + 3(t - 1) for 1<t≤61 < t \le 6, and P(t)=20P(t) = 20 for t>6t > 6. 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?
  1. A2.5
  2. B3.5
  3. C4.5
  4. D7.5

Choose an answer, then open the answer below to check it.

A place to start

Which piece of PP 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 5+3(t−1)=12.55 + 3(t - 1) = 12.5 and solve for tt, remembering to undo the −1-1 at the end.

Show the answer and explanation

Answer: B.3.5

Why B works

  1. Maya's 5.5 hours falls in 1<t≤61 < t \le 6, so P(5.5)=5+3(5.5−1)=5+13.5=18.5P(5.5) = 5 + 3(5.5 - 1) = 5 + 13.5 = 18.5.
  2. Leo's charge is 18.5−6=12.518.5 - 6 = 12.5 dollars.
  3. A charge of 12.5 is between 5 and 20, so it comes from the middle piece: 5+3(t−1)=12.55 + 3(t - 1) = 12.5.
  4. Solve: 3(t−1)=7.53(t - 1) = 7.5, so t−1=2.5t - 1 = 2.5 and t=3.5t = 3.5.
  5. Since 3.5 is inside 1<t≤61 < t \le 6, the correct choice is 3.5.

Why the other choices are wrong

  • A. This solves 3(t−1)=7.53(t - 1) = 7.5 to get t−1=2.5t - 1 = 2.5 and stops there. You still have to add 1 to find tt.
  • C. This computes Maya's charge as 5+3(5.5)5 + 3(5.5), skipping the −1-1 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 3(t−1)3(t - 1), 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.