### Learning outcome

- Solve multi-step equations with variables on both sides

In the examples up to this point, we have been able to isolate the variable with just one operation. Many of the equations we encounter in real life will take more steps to solve. Often, we will need to simplify one or both sides of an equation before using the Subtraction or Addition Properties of Equality. You should always simplify as much as possible before trying to isolate the variable — this is called combining like-terms.

### Example

Solve:

[latex]3x - 7 - 2x - 4=1[/latex]

Solution:

The left side of the equation has an expression that we should simplify before trying to isolate the variable.

[latex]3x-7-2x-4=1[/latex] | |

Rearrange the terms, using the Commutative Property of Addition. | [latex]3x-2x-7-4=1[/latex] |

Combine like terms. | [latex]x-11=1[/latex] |

Add [latex]11[/latex] to both sides to isolate [latex]x[/latex] . | [latex]x-11\color{red}{+11}=1\color{red}{+11}[/latex] |

Simplify. | [latex]x=12[/latex] |

Check.
Substitute [latex]x=12[/latex] into the original equation. [latex]3(\color{red}{12})-7-2(\color{red}{12})-4=1[/latex] [latex]36-7-24-4=1[/latex] [latex]29-24-4=1[/latex] [latex]5-4=1[/latex] [latex]1=1\quad\checkmark[/latex] The solution checks. |

Now you can try solving a couple equations where you should simplify first.

### TRY IT

The goal has been to familiarize you with the many ways to apply the addition, subtraction, multiplication, and division properties that are used to solve equations algebraically. Let’s work through an example that will employ all the techniques you’ve learned.

### Example

Solve: [latex]8x+9x - 5x=-3+15[/latex]

Solution:

First, we need to simplify both sides of the equation as much as possible

Start by combining like terms to simplify each side.

[latex]8x+9x-5x=-3+15[/latex] | |

Combine like terms. | [latex]12x=12[/latex] |

Divide both sides by 12 to isolate x. | [latex]\Large\frac{12x}{\color{red}{12}}\normalsize =\Large\frac{12}{\color{red}{12}}[/latex] |

Simplify. | [latex]x=1[/latex] |

Check your answer. Let [latex]x=1[/latex] | |

[latex]8x+9x-5x=-3+15[/latex] | |

[latex]8\cdot\color{red}{1}+9\cdot\color{red}{1}-5\cdot\color{red}{1}\stackrel{\text{?}}{=}-3+15[/latex] | |

[latex]8+9-5\stackrel{\text{?}}{=}-3+15[/latex] | |

[latex]12=12\quad\checkmark[/latex] |

Here is a similar problem for you to try.

### Try it

In the following video we present another example of how to solve an equation that requires simplifying before using the addition and subtraction properties.

You may not always have the variables on the left side of the equation, so we will show an example with variables on the right side. You will see that the properties used to solve this equation are exactly the same as the previous example.

### example

Solve: [latex]11 - 20=17y - 8y - 6y[/latex]

Notice that the variable ended up on the right side of the equal sign when we solved the equation. You may prefer to take one more step to write the solution with the variable on the left side of the equal sign.

Now you can try solving a similar problem.

### try it

In our next example, we have an equation that contains a set of parentheses. We will use the distributive property of multiplication over addition first, simplify, then use the division property to finally solve.

Let’s review how the Distributive Property works.

### Distributive Property

If [latex]a,b,c[/latex] are real numbers, then

[latex]a\left(b+c\right)=ab+ac[/latex]

### example

Simplify: [latex]3\left(x+4\right)[/latex]

Solution:

[latex]3\left(x+4\right)[/latex] | |

Distribute. | [latex]3\cdot x+3\cdot 4[/latex] |

Multiply. | [latex]3x+12[/latex] |

Some students find it helpful to draw in arrows to remind them how to use the Distributive Property. Then the first step in the previous example would look like this:

[latex]3\cdot x+3\cdot 4[/latex]

Now you give it a try.

### try it

Apply your understanding of the Distributive Property to an equation that needs to be solved.

### example

Solve: [latex]-3\left(n - 2\right)-6=21[/latex]

Remember—always simplify each side first.

Now you can try a similar problem.

### try it

In the following video you will see another example of using the division property of equality to solve an equation as well as another example of how to solve a multi-step equation that includes a set of parentheses.

You may have noticed that in all the equations we have solved so far, we had variables on only one side of the equation. This does not happen all the time—so now we’ll see how to solve equations where there are variable terms on both sides of the equation. We will start like we did above—choosing a variable side and a constant side, and then use the Subtraction and Addition Properties of Equality to collect all variables on one side and all constants on the other side. Remember, what you do to the left side of the equation, you must do to the right side as well.

In the next example, the variable, [latex]x[/latex], is on both sides, but the constants appear only on the right side, so we’ll make the right side the “constant” side. Then the left side will be the “variable” side.

### ExampleS

Solve: [latex]5x=4x+7[/latex]

Solve: [latex]7x=-x+24[/latex].

Now you can try solving an equation with variables on both sides where it is beneficial to move the variable term to the left side.

### try it

In our last examples, we moved the variable term to the left side of the equation. In the next example, you will see that it is beneficial to move the variable term to the right side of the equation. There is no “correct” side to move the variable term, but the choice can help you avoid working with negative signs.

### example

Solve: [latex]5y - 8=7y[/latex]

Now you can try solving an equation where it is beneficial to move the variable term to the right side.

### try it

### Solve Equations with Variables and Constants on Both Sides

The next example will be the first to have variables *and* constants on both sides of the equation. As we did before, we’ll collect the variable terms to one side and the constants to the other side. You will see that as the number of variable and constant terms increases, so do the number of steps it takes to solve the equation.

### Examples

Solve: [latex]7x+5=6x+2[/latex]

Solve: [latex]6n - 2=-3n+7[/latex]

In the following video we show an example of how to solve a multi-step equation by moving the variable terms to one side and the constants to the other side. You will see that it doesn’t matter which side you choose to be the variable side; you can get the correct answer either way.

In the next example, we move the variable terms to the right side to keep a positive coefficient on the variable.

### EXAMPLE

Solve: [latex]2a - 7=5a+8[/latex]

The following video shows another example of solving a multi-step equation by moving the variable terms to one side and the constants to the other side.

Try these problems to see how well you understand how to solve linear equations with variables and constants on both sides of the equal sign.

### try it

Here is a much more complex multi-step equation.

### EXAMPLE

Solve: [latex]\Large{\frac{x+22}{3}}=2x+4[/latex]

[latex]\frac{x+22}{3}=2x+4[/latex] | |

Multiply both sides of the equation by 3 | [latex]\color{red}{3}\cdot\frac{x+22}{3}=(2x+4)\color{red}{3}[/latex] |

Eliminate the [latex]\frac{3}{3} = 1[/latex] on the left and Distribute on the right | [latex]x+22=\color{red}{3}(2x)+\color{red}{3}(4)[/latex] |

Multiply | [latex]x+22=6x+12[/latex] |

Subtract [latex]x[/latex] from both sides (keeps variable term positive) | [latex]22=5x+12[/latex] |

Subtract [latex]12[/latex] from both sides (isolates the variable term) | [latex]10=5x[/latex] |

Divide both sides by [latex]5[/latex] (isolates the variable) | [latex]2=x[/latex] |

Rewrite solution with variable on the right | [latex]x=2[/latex] |

The solution is [latex]x=2[/latex] | |

Check: | [latex]\frac{x+22}{3}=2x+4[/latex] |

Let [latex]x=-11[/latex]. | [latex]\frac{\color{red}{2}+22}{3}=2(\color{red}{2})+4[/latex] |

[latex]\frac{24}{3}\stackrel{\text{?}}{=}4+4[/latex] | |

[latex]8=8\quad\checkmark[/latex] |

We just showed a lot of examples of different kinds of linear equations you may encounter. There are some good habits to develop that will help you solve all kinds of linear equations. We’ll summarize the steps we took so you can easily refer to them.

### Solve an equation with variables and constants on both sides

- Choose one side to be the variable side and then the other will be the constant side.
- Collect the variable terms to the variable side, using the Addition or Subtraction Property of Equality.
- Collect the constants to the other side, using the Addition or Subtraction Property of Equality.
- Make the coefficient of the variable [latex]1[/latex], using the Multiplication or Division Property of Equality.
- Check the solution by substituting it into the original equation.