Find the rule or equation for calculating the number of cupcakes left in terms of t...

Check the final answer first, then review the worked steps.

Answer

\(y = -3x + 21\)

Work

Slope $m = \frac{15-18}{2-1} = -3$. Using $y = mx + b$ with point $(1, 18)$: $18 = -3(1) + b \Rightarrow b = 21$. Equation: $y = -3x + 21$.

Step-by-step solution

The number of cupcakes decreases by 3 for every guest added, indicating a slope of -3. Starting with 21 cupcakes (at 0 guests), the linear equation is $y = -3x + 21$.