Sub topic 1
Reading a problem: what is asked and what is given
Prerequisites
This chapter assumes you can:
- Compute with integers, fractions, and decimals.
- Apply order of operations.
- Read a simple algebraic expression such as
3x + 5. - Convert a percent to a fraction of 100.
Reading the problem
Read the problem twice before you write anything. On the first pass, get the story. On the second, separate the question from the facts.
What is asked
Find the sentence that ends with a question mark or an instruction such as "find" or "how many." That sentence names the unknown. Write it in one line, with its units.
What is given
List every number and every relationship the problem states. Ignore details that do not affect the answer.
Choosing and defining a variable
A variable is a letter that stands for an unknown number. Pick a letter that helps you remember its meaning, such as a for adult tickets. Then write a definition sentence that includes the units:
Let a = number of adult tickets sold.
Define the variable for the quantity the question asks about, or for a quantity that makes the rest of the problem easy to express.
Translating words into expressions
Turn each phrase into an expression in terms of your variable:
| Phrase | Expression (if `a` is adult tickets) |
|---|---|
| 5 more than a | a + 5 |
| twice a | 2a |
| the rest of 10 tickets | 10 - a |
| 8 dollars each | 8a |
Writing the equation
An equation states that two expressions are equal. Find the sentence that gives the total or the comparison, then write it with the expressions you built.
Example: 10 tickets sold, adults cost $8, children cost $5, and total sales were $62.
from fractions import Fraction
# 8a + 5(10 - a) = 62 -> 3a + 50 = 62
a = Fraction(62 - 50, 3)
print(a, 10 - a) # 4 6
print(8 * a + 5 * (10 - a) == 62) # TrueExercise
A pen costs $3 and a notebook costs $5. You buy 4 items for $16 in total, all pens and notebooks. Write the equation, using p for the number of pens.
Show answer
3p + 5(4 - p) = 16, which gives p = 2 pens and 2 notebooks.