Lesson · Required
Learn: two equations, two unknowns
When a problem has two unknown amounts, write one equation for how many and one for how much.
A shop sold 30 shirts and hats for \$420. Shirts cost \$18 and hats cost \$12. How many shirts?
\begin{aligned} s + h &= 30 \\ 18s + 12h &= 420 \end{aligned}
Substitute: from the first, h = 30 - s. Then 18s + 12(30 - s) = 420, so 6s + 360 = 420, and s = 10.
If both equations are already solved for y, just set them equal to each other.
The trap: solving for the wrong unknown. Check which one the question wants.