Writing Equations from Context Examples in Math

Start with the recap, study the fully worked examples, then use the practice problems to check your understanding of Writing Equations from Context.

This page combines explanation, solved examples, and follow-up practice so you can move from recognition to confident problem-solving in Math.

Concept Recap

Translating real-world situations and word problems into algebraic equations by identifying the unknown, choosing a variable, and expressing relationships mathematically.

Word problems are stories in disguise. Your job is to find the main character (the unknown—call it x), figure out what's happening to it (the operations), and write down the punchline (the equation). 'Five more than twice a number is 17' becomes 2x+5=17.

Read the full concept explanation →

How to Use These Examples

  • Read the first worked example with the solution open so the structure is clear.
  • Try the practice problems before revealing each solution.
  • Use the related concepts and background knowledge badges if you feel stuck.

What to Focus On

Core idea: Writing an equation from context means naming the unknown and making two descriptions of the same quantity equal.

Common stuck point: The procedure for writing equations from context is the easy part; the trap is skipping the variable definition. Asking "Can I name the unknown and write two expressions that must be equal in this situation?" first is what keeps a correct-looking calculation from being attached to the wrong concept.

Sense of Study hint: Ask: Can I name the unknown and write two expressions that must be equal in this situation?

Worked Examples

Example 1

easy
Write an equation: 'Three times a number decreased by 4 is 17.'

Answer

3n−4=17;n=7

First step

1
Let n = the unknown number.

Full solution

  1. 2
    'Three times a number' = 3n.
  2. 3
    'Decreased by 4' = 3n−4.
  3. 4
    'Is 17' = =17. Equation: 3n−4=17.
  4. 5
    Solve: 3n=21, n=7.
Translating word problems: assign a variable, convert each phrase to math, and connect with an equals sign.

Example 2

medium
A plumber charges $50 for a visit plus $30 per hour. If the bill was $170, how many hours did the job take?

Example 3

medium
A gym membership has a $30 start-up fee and costs $25/month. The total spent is $255. Write and solve an equation for the number of months m.

Example 4

medium
Tank A has 200 L and drains at 5 L/min. Tank B has 50 L and fills at 10 L/min. After how many minutes t are they equal?

Example 5

hard
A boat travels 20 km at speed b+4 km/h with the current, then 20 km back at b−4 km/h against the current. The trip totals 3 hours. Write an equation in b.

Example 6

hard
A worker earns $15/h for the first 40 hours and $22.50/h for overtime. He earned $735 working h hours, where h>40. Write an equation in h.

Example 7

challenge
A ball is thrown upward from a 5-m roof with initial velocity 10 m/s. Its height in meters after t seconds is h(t)=5+10t−5t2. Write the equation for when the ball hits the ground.

Practice Problems

Try these problems on your own first, then open the solution to compare your method.

Example 1

easy
Write an equation: 'Half of a number plus 6 equals 10.'

Example 2

hard
The perimeter of a rectangle is 34 cm. The length is 5 cm more than the width. Find the dimensions.

Example 3

easy
A number increased by 7 equals 12. Write an equation using x for the number.

Example 4

easy
Twice a number is 18. Write an equation for the number n.

Example 5

easy
Five less than a number is 9. Write the equation using x.

Example 6

easy
A pencil costs $3. Write an equation for the cost C of p pencils.

Example 7

easy
The sum of a number and 4 is 10. Write an equation using x.

Example 8

easy
A number divided by 6 equals 5. Write the equation using y.

Example 9

easy
Maria has x dollars. She earns $15 more. Now she has $40. Write the equation.

Example 10

easy
Three times a number, plus 2, is 17. Write the equation using x.

Example 11

medium
The length of a rectangle is 3 more than its width w. Its perimeter is 26. Write an equation in w.

Example 12

medium
Tom is twice as old as Sara. In 5 years their ages sum to 40. Let Sara's age be s; write the equation.

Example 13

medium
A phone plan costs $20 plus $0.10 per minute. The bill is $32. Write an equation for minutes m.

Example 14

medium
A number is 4 less than three times another number y. The number is 11. Write an equation in y.

Example 15

medium
Two consecutive integers sum to 47. Let the smaller be n; write the equation.

Example 16

medium
A jar has nickels and dimes. There are 3 more dimes than nickels, and 12 coins total. Let nickels be n; write the count equation.

Example 17

medium
A car travels at 60 mph for t hours and covers 150 miles. Write an equation for t.

Example 18

medium
Admission is $8 for adults and $5 for children. A group of 6 people pays $39. Let adults be a; write the cost equation (children =6−a).

Example 19

medium
A rectangle's length is twice its width w, and its perimeter is 30. Write an equation in w.

Example 20

challenge
A rectangle's length is 2 more than twice its width w, and its area is 60. Write an equation in w, and state why this is not linear.

Example 21

challenge
A boat goes 12 miles downstream and back upstream. Downstream speed is b+3, upstream is b−3 (mph), where b is boat speed in still water. The trip takes 2 hours. Write an equation in b.

Example 22

challenge
Define a variable and write an equation: 'The price of a shirt after a 20% discount is $36.' Explain the choice of variable.

Example 23

easy
A taxi charges $3 to start and $2 per km. Let d be distance in km and C be total cost. Write the equation for C in terms of d.

Example 24

easy
Let h be hours worked. A worker earns $15/hour plus a $20 bonus. Write an equation for total pay P.

Example 25

medium
A rectangle's length is 4 more than its width w. The perimeter is 40. Write an equation in w.

Example 26

medium
Maya is 6 years older than her sister Lina. In 4 years, their ages will sum to 30. Let Lina's current age be ℓ; write an equation in ℓ.

Example 27

medium
Adult admission is $10 and child admission is $6. A group of 5 people pays $38. Let a be adults; write a cost equation.

Example 28

medium
A printer prints 24 pages/minute. A job takes t minutes and produces 480 pages. Write an equation for t.

Example 29

medium
A $1200 phone is paid off in equal monthly installments of $x over 24 months with a $60 down payment. Write an equation in x.

Example 30

medium
A vendor sells lemonade for $3/cup. Costs are $50 flat per day plus $0.50/cup. Let c be cups sold and P be profit. Write P in terms of c.

Example 31

medium
A bus holds 40 students. There are b buses and 5 extra students who go in a van. The total is 245 students. Write an equation in b.

Example 32

hard
The sum of three consecutive odd integers is 93. Let the smallest be n; write the equation.

Example 33

hard
A rectangle's length is 3 more than its width w. Its area is 108 cm². Write an equation in w and state why it is not linear.

Example 34

hard
A chemistry experiment mixes x liters of a 20% acid solution with (10−x) liters of a 50% acid solution to get a 30% acid mixture. Write the equation.

Background Knowledge

These ideas may be useful before you work through the harder examples.

equationsvariablesexpressions