You are asked to go to the store to buy 4 cartons of milk. You are given $15, which is enough to cover the cost of the milk with $2 leftover dollars for you as payment for the chore. How much does each carton of milk cost?

In this concept, you will learn to solve equations involving combining like terms.

### Combining Like Terms

When you add or subtract the terms in an expression, you can only combine **like terms**. **Like terms** are terms that contain the same variable, and these terms can be combined.

Let’s look at an example.

At the fruit stand, you buy 3 yellow peaches, 5 white peaches and 2 red apples. Write an equation to represent the number of peaches and apples you bought.

First, notice these are different kinds of fruit you bought at the fruit stand. Therefore, let

represent the number of peaches and represent the number of apples.Next, write your equation to show the number of peaches and apples.

\begin{align*}3 \ peaches + 5 \ peaches + 2 \ apples\end{align*}

Or

Then, combine like terms.

Let’s take a look at how you can apply what you know about combining like terms to solving algebraic equations.

Solve for

in the following equation.

First, combine the like terms on the left side of the equation.

Notice that 9 cannot be combined with

because they are not like terms.Then you can solve the equation as we would solve any two-step equation. The next step is to isolate the term with the variable, *subtracted* from , you should add 9 to both sides of the equation to isolate that term.

Then, \begin{align*}4 \times r\end{align*}, you should divide each side of the equation by 4 to get the by itself on one side of the equation.

means

The answer is 6.

Let’s look at another example.

Solve for “

” in the following equation.\begin{align*} 6n+3+8n+2=23\end{align*}

First, combine the like terms on the left side of the equation. The terms

and are like terms since each has the same variable, . The numbers 3 and 2 are also like terms, so they can be combined as well.Use the **commutative property of addition** to help you reorder the terms being added. This property states that terms can be added in any order. Then use the **associative property of addition** to group the terms so like terms are being added. The associative property of addition states that the grouping of terms being added does not matter.

\begin{align*}6n+3+8n+2 &= 33\\ 6n+(3+8n)+2 &= 33\\ 6n+(8n+3)+2 &= 33\\ (6n+8n)+(3+2) &= 33\end{align*}

Next, now that the like terms are grouped together with parentheses, combine them.

Then, solve as you would solve any two-step equation. The next step is to isolate the term with the variable,

, on one side of the equation. Since 5 is added to , you should subtract 5 from both sides of the equation to isolate the variable.

Then, since \begin{align*}n\end{align*} by itself on one side of the equation.

means , you should divide each side of the equation by 14 to get the

The answer is 2.

### Examples

#### Example 1

Earlier, you were given a problem about the task of buying milk.

You are given $15, which is enough to cover the cost of the milk with $2 leftover dollars for you as payment for the chore.

First, you need to name your variable. Since you are going to buy milk, let

represent the price of the milk.Next, write your equation. You are buying 4 cartons of milk so

. You will have $2 leftover after paying for the milk out of the $15. So your equation is:

Then, since you are adding 2 to the left side, isolate your variable by subtracting 2.

Then, solve for dividing by 2.

by

The answer is 3.25.

Each carton of milk costs $3.25.

#### Example 2

Yesterday, Tanya biked 3 more miles than she biked today. She biked a total of 13 miles on both days.

- Let stand for the number of miles Tanya biked today. Write an algebraic equation to represent the number of miles Tanya biked on both days.
- Find the number of miles Tanya biked today.
- Find the number of miles Tanya biked yesterday.

Part a.

First, you know that

represents the number of miles Tanya biked today. Use that variable to write an expression for the number of miles Tanya biked yesterday. You know that she biked 3 more miles yesterday than today and the total for the two days was 13. Therefore:

Part b.

Next, combine like terms. Use the commutative property of addition to rearrange the terms being added so it is easier to see how to add the like terms.

Then, solve the equation for \begin{align*}m\end{align*} as you would solve any two-step equation. Subtract 3 from both sides of the equation.

Then divide both sides by 2 to solve for

.

The answer is 5. Therefore Tanya biked 5 miles today.

Part c.

First, you know that Tanya biked 3 more miles yesterday than today. You also know that she biked 5 miles today. Therefore you need to substitute 5 in for

.\begin{align*}3+m &= 3+5\\ 3+m &= 8\end{align*}

The answer is 8.

Tanya biked 8 miles yesterday.

#### Example 3

First, combine like terms.

Next, subtract 2 from both sides to isolate the variable.

\begin{align*}8p+2 &= 18\\ 8p+2-2 &= 18-2\\ 8p &= 16\end{align*}

Then, solve for

by dividing both sides by 8.

The answer is 2.

#### Example 4

\begin{align*}3x+6x+14=41\end{align*}

First, combine like terms.

Next, subtract 14 from both sides to isolate the variable.

\begin{align*}9x+14 &= 41\\ 9x+14-14 &= 41-14\\ 9x &= 27\end{align*}

Then, solve for \begin{align*}x\end{align*} by dividing both sides by 9.

\begin{align*}9x &= 27\\ \frac{9x}{9} &= \frac{27}{9}\\ p &= 3\end{align*}

The answer is 3.

#### Example 5

First, combine like terms.

Next, add 7 from both sides to isolate the variable.

\begin{align*}17x-7 &= 44\\ 17x-7+7 &= 44+7\\ 17x &= 51\end{align*}

Then, solve for \begin{align*}x\end{align*} by dividing both sides by 17.

The answer is 3.

### Review

Practice combining like terms as you simplify each expression.

1.

2.

3. \begin{align*}6x+9x+x-4\end{align*}

4.

5.

6.

Combine like terms and solve each equation.

7.

8. \begin{align*}5y+2y+6=48\end{align*}

9. \begin{align*}4x-6x+3=13\end{align*}

10.

11.

12.

13.

14.

15.