Sub topic 2
Solving the equation
This section assumes you can work with fractions and decimals, apply order of operations, and read a letter as a variable that stands for an unknown number.
Solving the equation
Start with the equation you wrote from the problem. Isolate the variable by undoing operations in reverse order: first remove added or subtracted terms, then divide or multiply. Whatever you do to one side, do to the other. Expand parentheses and combine like terms before you move anything.
Take the ticket problem: 10 tickets, adults at $8, children at $5, total $62. Let a be the number of adult tickets.
- Expand: 8a + 50 - 5a = 62
- Combine: 3a + 50 = 62
- Subtract 50 from both sides: 3a = 12
- Divide both sides by 3: a = 4
from fractions import Fraction
a = Fraction(62 - 50, 3)
print(a) # 4Checking your answer against the words
Substitute the value into the facts stated in the problem, not only into your equation. An equation can be solved correctly and still model the wrong situation.
Four adults and six children make 10 tickets. Adults cost 4 × $8 = $32, children cost 6 × $5 = $30, and the total is $62, which matches the problem.
Stating the answer with units and judging reasonableness
Write the answer as a full sentence with units: "There were 4 adult tickets sold." A bare number such as "4" leaves the reader guessing what it measures.
Then judge whether the result makes sense in context:
| Candidate result | Test | Verdict |
|---|---|---|
| a = 4 adults | Whole number between 0 and 10 | Reasonable |
| a = -2 adults | Negative count | Reject, so the equation or setup is wrong |
| a = 3.5 adults | Fraction of a ticket | Reject |
Exercise
A jacket costs $48 after a 20% discount. What was the original price, and what does it mean in context?
Show answer
Let p be the original price in dollars. Then 0.8p = 48, so p = 60. The original price was $60. A price above $48 fits a discount, so the answer is reasonable.