Two totals about two kinds of items signal a linear system: one equation counts items and the other counts dollars. Keep item counts and dollars in separate equations. Label the cupcake count , graph both equations in Desmos, and click where the lines cross. The other coordinate counts cookies, even if it appears among the choices.
Hints
- Hint 1
Let count cupcakes and count cookies. A count equation adds the two kinds of items without using their prices. What must equal?
- Hint 2
A revenue equation adds dollars, not items. Each cupcake contributes to the money collected, while each cookie contributes . How much money do cupcakes and cookies bring in?
- Hint 3
Where the two lines cross, both totals are true. Read the first coordinate for , the cupcake count; the second coordinate is the cookie count.
Step-by-step
Approach 1: Graph the item and money equations
Step 1Write the item-count equation
Let be the number of cupcakes and the number of cookies. Every item is one or the other, so the item count gives . Prices don't belong in this equation.
- Step 2
Write the money equation
Each cupcake brings in dollars, so cupcakes bring in dollars. Each cookie brings in dollar, so cookies bring in dollars. The money total gives .
- Step 3
Read the cupcake count at the intersection
Type both equations into Desmos and click the intersection, where the lines cross. Desmos shows ; that point makes both totals true. The first coordinate is , so Leah sold cupcakes, not cupcakes: is the cookie count. Choice C.
Approach 2: Count the extra dollar from each cupcake
Step 1Find the all-cookie starting amount
No Desmos needed. Replacing a cookie with a cupcake changes the money by exactly one dollar. If all items were $1 cookies, Leah would collect $50.
- Step 2
Find what each replacement adds
Replacing one cookie with one cupcake keeps the item count at . Because cupcakes cost and cookies cost , each replacement adds $1 to the money collected.
- Step 3
Match the extra money to cupcakes
The actual total is , which is $30 above the all-cookie amount: . Each cupcake accounts for of that extra money, so Leah sold cupcakes. Choice C.