Chapter 6 · Equations and inequalities

Writing and Solving Two-Step Equations

Turn a word problem into a two-step equation, then solve it by undoing the operations in reverse order and checking the answer.

18 min read

A climbing gym charges 9 dollars for each visit, plus a one-time fee of 12 dollars for a membership card. Maya has paid 57 dollars in all. How many visits has she made?

This story has two parts: an amount that repeats (9 dollars for every visit) and an amount that happens once (the 12-dollar card). In this lesson you'll turn stories like this into equations and then solve them. You already know how to solve one-step equations. Here you'll use two of those steps, one after the other.

Before using a letter, try a few numbers of visits and watch what stays the same.

Total cost for different numbers of visits
Number of visitsCalculation (dollars)Total cost (dollars)
11
9(1)+129(1) + 12
2121
22
9(2)+129(2) + 12
3030
33
9(3)+129(3) + 12
3939
? (not known yet)
9(?)+129(?) + 12
5757

Read down the middle column. Every calculation has the same shape: 9 times the number of visits, then add 12. Only the number of visits changes, so give it a letter. A variable is a letter that stands for a number. Let vv be the number of visits Maya has made.

With vv visits, the cost in dollars is 9v+129v + 12, where 9v9v means 9×v9 \times v. That is an expression: a mathematical phrase with no equals sign. Its 9v9v part grows with every visit, and its 12 stays the same.

Maya paid 57 dollars, so the expression must equal 57. An equation is a statement that two expressions are equal. Here is Maya's equation, with each part labeled:

9v⏟cost of v visits+12⏟card fee=57⏟total paid\underbrace{9v}_{\text{cost of } v \text{ visits}} + \underbrace{12}_{\text{card fee}} = \underbrace{57}_{\text{total paid}}

Maya's equation is a two-step equation: an equation in which two operations, such as multiplying and adding, are done to the variable. In this lesson, each one has the form px+q=rpx + q = r. You multiply the variable xx by a known number pp, then add a known number qq, and the result is the known number rr. Subtracting fits this form too. Subtracting 8, for example, is the same as adding −8-8, so then q=−8q = -8.

The number that multiplies the variable, pp, is called the coefficient. It cannot be zero, or the variable would disappear. In Maya's equation the variable is vv, and p=9p = 9, q=12q = 12 and r=57r = 57.

To write a two-step equation from a word problem, find four things:

  • The unknown. Pick a letter and say exactly what it counts.
  • The repeating amount. It is the amount for each one of the unknown, so it multiplies the variable.
  • The one-time amount. It is counted once, however large the unknown is.
  • The final amount. The two parts together must equal this known number.

Add a part that raises the final amount, and subtract a part that lowers it. Every part you add, subtract or set equal must be in the same unit. In Maya's equation, 9v9v, 1212 and 5757 are all amounts in dollars.

Worked example

Write an equation from a story

In a quiz game, each correct answer earns 6 points. Nia also got a one-time penalty of 8 points for starting late. Her final score was 40 points. Write an equation you could solve to find how many questions Nia answered correctly.

  1. Name the unknown. The story asks for a number of correct answers, so let c be the number of questions Nia answered correctly.

  2. Find the repeating amount. Each correct answer earns 6 points, so c correct answers earn 6 times c points. The 6 multiplies the variable because it is counted once for every correct answer.

    6c6c
  3. Find the one-time amount. The penalty happens once and lowers the score by 8 points, so subtract 8 from the points earned. Subtracting 8 is the same as adding negative 8, so this fits the form px + q with q equal to negative 8.

    6c−86c - 8
  4. Set the expression equal to the final amount. Nia's final score was 40 points, so the points earned minus the penalty must equal 40. Every part of the equation is in points.

    6c−8=406c - 8 = 40

Answer

The equation 6c−8=406c - 8 = 40 models the story, where cc is the number of questions Nia answered correctly.

Now for the second skill. To solve an equation means to find each value of the variable that makes the equation true. Such a value is called a solution.

You could find Maya's visits without an equation. Work backward from 57 dollars. First take away the 12-dollar card fee, because only the rest was spent on visits. Then split what is left into 9-dollar visits.

Solving 9v+12=579v + 12 = 57 uses the same two operations in the same order. The one difference is that you do each operation to both sides. The equation says that 9v+129v + 12 and 5757 are two names for the same number. Do the same thing to both names and they still name one number, so the two sides stay equal. This works when you add the same number to both sides, subtract it from both sides, or multiply or divide both sides by it, as long as you never divide by zero. The table shows both ways side by side.

Two ways to find Maya's number of visits
StepWorking backward with arithmeticSolving the equation
Start
Maya paid 57 dollars in all.
9v+12=579v + 12 = 57
1
Take away the 12-dollar card fee. 57−12=4557 - 12 = 45, so 45 dollars went to visits.
Subtract 12 from both sides. 9v+12−12=57−129v + 12 - 12 = 57 - 12, so 9v=459v = 45.
2
Split 45 dollars into 9-dollar visits. 45÷9=545 \div 9 = 5, so Maya made 5 visits.
Divide both sides by 9, which is not zero. 9v÷9=45÷99v \div 9 = 45 \div 9, so v=5v = 5.
Check
5 visits cost 9×5=459 \times 5 = 45 dollars. With the card, 45+12=5745 + 12 = 57 dollars.
9(5)+12=45+12=579(5) + 12 = 45 + 12 = 57, so v=5v = 5 makes the original equation true.

Key concept

Undo the operations in reverse order

The equation px+q=rpx + q = r, with pp not zero, says: start with xx, multiply by pp, then add qq, and the result is rr. A reliable way to find xx is to undo those operations in reverse order.

  • First undo the adding or subtracting, the operation that was done last. Now pxpx is alone on its side.
  • Then undo the multiplying by dividing by pp. This is allowed because pp is not zero. Dividing by zero is never allowed.

In each step, do the same operation to both whole sides so that they stay equal. The value you find is a solution only if it makes the original equation true, so put it back into the original equation to check.

px+q=r  ⟶  px=r−q  ⟶  x=r−qp(p≠0)px + q = r \;\longrightarrow\; px = r - q \;\longrightarrow\; x = \frac{r - q}{p} \quad (p \neq 0)

Worked example

Solve a two-step equation

Solve the equation from Nia's quiz game, 6c−8=406c - 8 = 40, where cc is the number of questions she answered correctly.

  1. Read what happens to c: it is multiplied by 6, and then 8 is subtracted. Undo the last operation first. Adding 8 undoes subtracting 8, and you add it to both sides so the two sides stay equal.

    6c−8+8=40+86c - 8 + 8 = 40 + 8
  2. Simplify each side. On the left, subtracting 8 and then adding 8 changes nothing, so the left side is equivalent to 6c. Equivalent means the two expressions are equal for every value of c. On the right, 40 plus 8 is 48.

    6c=486c = 48
  3. Now c is only multiplied by 6. Dividing by 6 undoes multiplying by 6, so divide both sides by 6. This is allowed because 6 is not zero.

    6c6=486\frac{6c}{6} = \frac{48}{6}
  4. Simplify each side. On the left, 6 times c divided by 6 is c. On the right, 48 divided by 6 is 8.

    c=8c = 8
  5. Check in the original equation by putting 8 in place of c. Six times 8 is 48, and 48 minus 8 is 40, which matches the right side. So 8 makes the original equation true. It also fits the story, because 8 is a whole number of questions.

    6(8)−8=48−8=406(8) - 8 = 48 - 8 = 40

Answer

The solution is c=8c = 8, so Nia answered 8 questions correctly.

Worked example

Write and solve when an amount goes down

A tank holds 50 liters of water. A valve opens, and the tank drains 4 liters each minute. After how many minutes will exactly 18 liters be left in the tank?

  1. Let m be the number of minutes the tank has been draining. The tank loses 4 liters each minute, so after m minutes it has lost 4 times m liters. Start with 50 liters, subtract the water lost, and set the result equal to the 18 liters left. Every part of the equation is in liters.

    50−4m=1850 - 4m = 18
  2. Match the form px + q = r. Subtracting 4m is the same as adding negative 4m, and a sum can be written in either order, so the variable part can go first. The old and new left sides are equivalent: they are equal for every value of m. The coefficient is negative 4 because the amount of water goes down.

    −4m+50=18-4m + 50 = 18
  3. Undo the adding of 50 by subtracting 50 from both sides, which keeps the two sides equal. The left side becomes negative 4m. On the right, 18 minus 50 is negative 32, because 50 is 32 more than 18.

    −4m+50−50=18−50so−4m=−32-4m + 50 - 50 = 18 - 50 \quad\text{so}\quad -4m = -32
  4. Undo the multiplying by dividing both sides by negative 4. This is allowed because negative 4 is not zero. On the left, negative 4 times m divided by negative 4 is m. On the right, negative 32 divided by negative 4 is 8, because negative 4 times 8 is negative 32.

    −4m−4=−32−4som=8\frac{-4m}{-4} = \frac{-32}{-4} \quad\text{so}\quad m = 8
  5. Check in the original equation by putting 8 in place of m. Four times 8 is 32, and 50 minus 32 is 18, so 8 makes the original equation true. It also fits the story: 8 is a positive number of minutes, and water is still left in the tank.

    50−4(8)=50−32=1850 - 4(8) = 50 - 32 = 18

Answer

The solution is m=8m = 8: exactly 18 liters are left after the tank has drained for 8 minutes.

The big idea: a two-step equation of the form px+q=rpx + q = r tells a short story. You multiply an unknown number by one number, add or subtract a second number, and get a known result.

  • To write one, name the unknown, multiply it by the repeating amount, combine that with the one-time amount by adding or subtracting, and set the result equal to the final amount.
  • To solve one, undo the operations in reverse order. Do the same operation to both sides each time, and never divide by zero. Then check that your value makes the original equation true.

Next, you'll solve two-step equations where the variable is inside parentheses, such as p(x+q)=rp(x + q) = r, and equations with fraction and decimal coefficients.