Skip to the page

Functions: question 23 of 25

An ACT® Math practice question. Pick an answer to check it, or open the answer and the worked explanation.

The question

FunctionsHarder

An online store uses two functions to price an order. The function c(p)=p−15c(p) = p - 15 applies a 15-dollar coupon to a price of pp dollars, and the function s(p)=0.8ps(p) = 0.8p applies a 20 percent sale discount. For Dario's order, the final price was s(c(p))s(c(p)), where pp is the original price. If Dario's final price was 48 dollars, what was the original price, in dollars?
  1. A26.40
  2. B60.00
  3. C75.00
  4. D78.75

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

A place to start

Which function is applied first in s(c(p))s(c(p)), and which is applied last?

Another hint

Write s(c(p))s(c(p)) as one expression in pp and set it equal to 48.

One more hint

You should have 0.8(p−15)=480.8(p - 15) = 48. Undo the multiplication by 0.8 first, then undo the subtraction of 15.

Show the answer and explanation

Answer: C.75.00

Why C works

  1. Build the composition from the inside out: c(p)=p−15c(p) = p - 15, so s(c(p))=0.8(p−15)s(c(p)) = 0.8(p - 15).
  2. Set it equal to the final price: 0.8(p−15)=480.8(p - 15) = 48.
  3. Undo the outer step first by dividing by 0.8: p−15=60p - 15 = 60.
  4. Undo the inner step by adding 15: p=75p = 75.
  5. Check: 75−15=6075 - 15 = 60 and 0.8(60)=480.8(60) = 48. The correct choice is 75.00.

Why the other choices are wrong

  • A. This treats 48 as the original price and runs it forward: 0.8(48−15)0.8(48 - 15). The 48 is the output of the composition, so you need to work backward from it.
  • B. This undoes the 20 percent discount, 48÷0.848 \div 0.8, but stops there. That number is the price after the coupon, so the 15 dollars still has to be added back.
  • D. This adds 15 first and then divides by 0.8, which solves c(s(p))=48c(s(p)) = 48 instead. In s(c(p))s(c(p)) the coupon is applied first, so it must be undone last.

The rule

To find the input of a composition from its output, write the composition from the inside out, then undo the steps in reverse order.

Spot it next time

Whatever was done last gets undone first; after solving, run your answer forward through both functions (about 15 seconds) to confirm you get the given output.