Skip to content
S StudyGuide GH

Algebra · Variables and Equations · Lesson 1

Writing Equations from Word Problems (and Back Again)

Many everyday puzzles — sharing money among friends, working out someone's age, finding the price of one item — can be written as a short mathematical sentence called an equation. In this lesson you will learn to turn words into equations, use a flag diagram to undo the steps of a puzzle, and turn an equation back into a story.

NaCCA B7.2.3.1.1 ⏱ about 45 min

By the end you will be able to

  • ✔Translate key words such as 'more than', 'less than', 'twice' and 'the result is' into algebraic symbols.
  • ✔Write a linear equation in one variable for a given word problem.
  • ✔Use a flag diagram and inverse operations to find the unknown number.
  • ✔Write a word problem that matches a given linear equation.

Key words

Variable
A letter, such as x or n, that stands for a number we do not yet know.
Expression
Numbers and letters joined by operations, with no equals sign, e.g. .
Equation
A mathematical sentence saying two things are equal, e.g. .
Linear equation
An equation in which the variable has power 1 only (no ), such as .
Inverse operation
The operation that undoes another: + undoes −, × undoes ÷, and the other way round.
Flag diagram
A chain of boxes and arrows showing the operations done to a number, which we can run backwards to find the number.
Curriculum reference

Content standard: B7.2.3.1 Demonstrate an understanding of linear equations of the form x + a = b (where a and b are integers) by modelling problems as a linear equation and solving the problems concretely, pictorially, and symbolically.

Indicator: Translate word problems to linear equations in one variable and vice versa.

Starter

Ama's number trick

At break time in a school in Cape Coast, Ama says to Kofi: "Think of a number, double it and subtract 7. Tell me your answer." Kofi says "41." In two seconds Ama shouts, "Your number was 24!" Is Ama a magician? No — she simply wrote the puzzle as an equation in her head and worked backwards. By the end of this lesson you can do the same trick.

1. From words to symbols

In algebra we use a letter to stand for a number we do not know yet. The letter is called a variable or an unknown. Any letter will do — , , — but always say clearly what it stands for, for example *"let be the number Kofi thought of"*.

Word problems use certain words again and again. Each one tells you which operation to use. Learn this table well; it is the dictionary for translating English into algebra.

Key words and the symbols they become
WordsOperationIn symbols (number = x)
5 more than a number / a number increased by 5add
5 less than a number / a number decreased by 5subtract
a number subtracted from 20subtract
twice / double a numbermultiply by 2
three times a numbermultiply by 3
half of a number / a number divided by 2divide by 2
two-thirds of a numbermultiply by
the result is / gives / equals / isequals sign

Notice the difference between an expression and an equation. "Twice a number, decreased by 7" is the expression : it has no equals sign and we cannot solve it. "Twice a number, decreased by 7, is 41" is the equation : now we have a fact we can use to find .

2. Flag diagrams: doing and undoing

A flag diagram shows what happens to the unknown number step by step, like a trotro moving from stop to stop. To find the starting number, we travel back along the same road, doing the inverse (opposite) of each operation, in reverse order.

▶ Watch the top row build the equation 2x − 7 = 41. Then follow the bottom row backwards: every operation is undone by its inverse, in reverse order.

  1. 1Let the unknown number be and draw a box for it.
  2. 2Draw an arrow for each operation in the order the problem gives them, and write the result at the end.
  3. 3Read off the equation, e.g. .
  4. 4Start from the result and go backwards, using the inverse of each operation.
  5. 5Check your answer by putting it back into the original words.

3. Writing equations for real-life problems

Real problems are not always "think of a number". They talk about ages, money, oranges or marks. The secret is the same every time: choose one quantity to be , write **every other quantity in terms of , then find the sentence that tells you something is equal**.

Ages: The sum of the ages of two friends is 25, and the older one is 4 times as old as the younger one. Let the younger one's age be years. Then the older one is years. Their ages add up to 25, so , which is .

Sharing: Adaako and Afrakoma shared 40 oranges. Afrakoma had 6 more than Adaako. Let Adaako's share be . Afrakoma's share is . Together they have 40, so , which simplifies to .

Choose x, write the rest in terms of x, then find what is equal
ProblemLet x be…Other quantityEquation
Ages add to 25; older is 4 times youngeryounger's ageolder =
40 oranges; Afrakoma has 6 more than AdaakoAdaako's shareAfrakoma =
3 pens and a GH₵2 eraser cost GH₵20price of 1 pen (GH₵)3 pens =

4. From an equation back to a story

The indicator also asks you to go the other way: given an equation, write a word problem for it. Read the equation from left to right and say in words what happens to the unknown number. There are many correct stories — any story whose sentence gives exactly the same equation is right.

EquationA matching word problem
The sum of two equal numbers is 15.
When 4 is taken away from two times a certain number, the result is 12.
Two-thirds of a certain number is 4.
Kwame bought 3 pens of the same price and an eraser for GH₵2. He paid GH₵20 altogether.

Worked examples

Try each one yourself first, then open the solution and compare every step.

Example 1

Translating a simple sentence

When 9 is added to a number, the result is 23. Write an equation and find the number.
Show the solution
  1. Step 1Let the number be .
  2. Step 2"9 is added to a number" gives ; "the result is 23" gives .
  3. Step 3Equation: .
  4. Step 4Undo + 9 by subtracting 9: .
  5. Step 5Check: 14 + 9 = 23 ✓

Answer: ; the number is 14

Example 2

Ama's number trick with a flag diagram

Think of a number, double it and subtract 7. The result is 41. What was the original number?
Show the solution
  1. Step 1Flag diagram: , so the equation is .
  2. Step 2Go backwards. Undo − 7 by adding 7: 41 + 7 = 48, so .
  3. Step 3Undo × 2 by dividing by 2: 48 ÷ 2 = 24, so .
  4. Step 4Check: 2 × 24 − 7 = 48 − 7 = 41 ✓

Answer: 24

Example 3

An age problem

The sum of the ages of two friends is 25, and the older one is 4 times as old as the younger one. Write an equation and find both ages.
Show the solution
  1. Step 1Let the younger friend's age be years. The older friend is years.
  2. Step 2Their ages add to 25: , so .
  3. Step 3Divide by 5: .
  4. Step 4Older friend: 4 × 5 = 20 years. Check: 5 + 20 = 25 ✓ and 20 = 4 × 5 ✓

Answer: ; the friends are 5 and 20 years old

Example 4

Sharing oranges

Adaako and Afrakoma shared 40 oranges. Afrakoma had 6 more than Adaako. Write an equation and find each share.
Show the solution
  1. Step 1Let Adaako's share be . Afrakoma's share is .
  2. Step 2Together: , so .
  3. Step 3Subtract 6: . Divide by 2: .
  4. Step 4Afrakoma: 17 + 6 = 23. Check: 17 + 23 = 40 ✓

Answer: Adaako 17 oranges, Afrakoma 23 oranges

Example 5

Writing a story for an equation

Write a word problem for and solve it.
Show the solution
  1. Step 1 means three equal amounts; + 2 is an extra 2; = 20 is the total.
  2. Step 2Story: Kwame bought 3 pens of the same price and an eraser for GH₵2. He paid GH₵20. Find the price of one pen.
  3. Step 3Solve: subtract 2 to get , then divide by 3: .
  4. Step 4Check: 3 × 6 + 2 = 18 + 2 = 20 ✓

Answer: One possible story is above; each pen costs GH₵6

Summary

  • A variable is a letter that stands for an unknown number; always say what it stands for.
  • Key words become symbols: more than → +, less than → −, twice → × 2, the result is → =.
  • "5 less than x" is , not .
  • A flag diagram shows the operations in order; undo them with inverse operations in reverse order.
  • For real problems, let x be one quantity (usually the smaller), write the others in terms of x, then find what is equal.
  • Many different stories can match one equation; check that your story gives exactly that equation.

Practice: 15 questions

5 easy, 5 medium, 5 hard. Each one is marked straight away, with a full worked solution.

You can practise without an account, but sign up free or sign in to save your progress.

1 easy
Which expression means "7 more than a number "?
2 easy
Which equation means "a number decreased by 5 gives 12"?
3 easy word problem
Yaw thinks of a number and adds 9. The result is 23. What number did Yaw think of?
4 easy
Using for the number, write an equation for: "Three times a number is 27."
5 easy
Which word problem matches the equation ?
6 medium word problem
Esi thinks of a number, multiplies it by 3 and then adds 5. The result is 32. Find Esi's number.
7 medium word problem
The sum of the ages of Yaw and his sister is 30. Yaw is 4 years older than his sister. If the sister's age is years, which equation is correct?
8 medium
A flag diagram reads: . Find .
9 medium
Using for the number, write an equation for: "When 4 is taken away from twice a number, the result is 12."
10 medium
Two-thirds of a certain number is 4. Find the number.
11 hard word problem
Kojo and Musa share GH₵50. Musa gets GH₵8 more than Kojo. Let Kojo's share be GH₵.
  1. (a) Which equation describes the sharing?

  2. (b) How much does Kojo get (in GH₵)?

  3. (c) How much does Musa get (in GH₵)?

12 hard word problem
A father is 3 times as old as his son. The sum of their ages is 48 years. Write an equation and find the son's age.
years
13 hard
Which word problem does NOT match the equation ?
14 hard word problem
Three consecutive whole numbers add up to 72. Find the smallest of the three numbers.
15 hard word problem
A rectangular school garden in Techiman is 5 m longer than it is wide. Its perimeter is 70 m. Let the width be m.
  1. (a) Which equation is correct?

  2. (b) Find the width.

    m
  3. (c) Find the length.

    m