The hockey team is selling chocolate bars for a fundraiser. For the past few weeks, the students have been out there taking orders with the hope of raising enough money for the big tournament. Karen was in charge of sorting through the orders that had come in. She began counting all of the sales that the students had made. She discovered that she and Josie had sold the same amount of boxes. Josie sold thirty-six more boxes than Jake. She sold three times as many as Jake did. So how many boxed did Jake sell?

In this concept, you will learn to solve equations with a variable on both sides of the equation.

### Equations with a Variable on Both Sides

To solve an equation that has the same variable on both sides of it, you need to get the variables together on one side of the equation, and then get the numbers together on the other side of the equation.

Let's look at an example.

\begin{align*}12+t=30+3t\end{align*}

Start by subtracting

and 12 from both sides of the equation.

Next, you can combine like terms.

\begin{align*}\begin{array}{rcl} 12-12+t-3t &=& 30-3t-12 \\ -2t &=& 18 \end{array}\end{align*}

Then, solve for the value of the variable by dividing both sides by -2.

\begin{align*}\begin{array}{rcl} -2t &=& 18 \\ \frac{-2t}{-2} &=& \frac{18}{-2} \\ t&=& -9 \end{array}\end{align*}

The answer is -9.

Sometimes, an equation will have a set of parentheses and variables on both sides of the equation. The distributive property is very helpful in solving these equations.

Let’s look at an example.

Solve for ‘

’:\begin{align*}4a+16=13a-(2a+3a)\end{align*}

First, simplify the expression on the right side of the equation. According the order of operations, we should combine the like terms inside the parentheses first.

\begin{align*} \begin{array}{rcl} 4a+16 & = &13a-(2a+3a) \\ 4a+16 & = & 13a -(5a) \\ 4a+16 & = & 13a-5a \\ 4a+16 & = & 8a \end{array}\end{align*}

Next, notice that the variable, \begin{align*}a\end{align*}, is on both sides of the equation. You can use inverse operations to get all of the terms with the variable, , on one side of the equation. Since there is a number on the left side of the equation and there is no number on the right side of the equation, it is easier to try to get all of the variable terms on the right side of the equation. You can get all of the variable terms on the right side of the equation by subtracting \begin{align*}4a\end{align*} from both sides.

\begin{align*}\begin{array}{rcl} 4a+16 & = & 8a \\ 4a-4a+16 & = & 8a-4a \\ 16 & = & 4a \end{array}\end{align*}

Then, to solve for ‘\begin{align*}a\end{align*}’, you divide both sides of the equation by 4.

\begin{align*}\begin{array}{rcl} 16 & = & 4a\\ \frac{16}{4} &=& \frac{4a}{4} \\ a &=& 4 \end{array}\end{align*}

The answer is 4.

### Examples

#### Example 1

Earlier, you were given a problem about Karen and the chocolate bar orders. She knew the following:

- She sold as many chocolate bars as Josie.
- Josie sold thirty-six more boxes than Jake.
- She sold three times as many as Jake did.

Karen wanted to find out how many chocolate bars Jake sold.

First, you need to write an equation. Let \begin{align*}x\end{align*}= the number of chocolate bars that Jake sold. Therefore, Josie sold \begin{align*}(36 + x) \end{align*}boxes of bars and Karen sold \begin{align*}3x \end{align*}boxes of bars. Therefore the equation is:

\begin{align*}x+36=3x\end{align*}

Next subtract

from both sides of the equation.

Then, divide both sides by 2 to solve for ‘\begin{align*}x\end{align*}’.

\begin{align*}\begin{array}{rcl}
36 &=& 2x \\
\frac{36}{2} &=& \frac{2x}{2}\\
x &=& 18
\end{array}\end{align*}

The answer is 18.

Jake sold 18 boxes of chocolate bars. This also means that Karen sold 3(18) or 54 boxes of chocolate bars. As well, Josie sold \begin{align*}(18+36)\end{align*} or 54 boxes of chocolate bars.

#### Example 2

Solve for ‘\begin{align*}x\end{align*}’ in the equation:

\begin{align*}6x+1=8x+3\end{align*}

First, you need to move the terms with variables to the same side of the equation. Let’s move the inverse operation. You subtract from both sides of the equation.

. You can do this by using an\begin{align*}\begin{array}{rcl} 6x+1 &=& 8x+3 \\ 6x-6x+1 &=& 8x-6x+3 \\ 1 &=& 2x+3 \end{array}\end{align*}

Next, subtract 3 from both sides of the equation so that only the variable remains on the left hand side.

\begin{align*}\begin{array}{rcl} 1 &=& 2x+3 \\ 1 -3 &=& 2x+3 -3\\ -2 &=& 2x \end{array}\end{align*}

Then, divide both sides by 2.

\begin{align*}\begin{array}{rcl} -2&=& 2x \\ \frac{-2}{2} &=& \frac{2x}{2}\\ x &=& -1 \end{array}\end{align*}The answer is -1.

#### Example 3

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

First, you need to move the terms with variables to the same side of the equation. You can subtract \begin{align*}6x\end{align*} from both sides of the equation.

Next, subtract 6 from both sides of the equation so that only the variable remains on the left hand side.

\begin{align*}\begin{array}{rcl} 3 &=& 3x+6 \\ 3-6 &=& 3x+6 -6\\ -3 &=& 3x \end{array}\end{align*}

Then, divide both sides by 3.

\begin{align*} \begin{array}{rcl} -3&=& 3x \\ \frac{-3}{3} &=& \frac{3x}{3}\\ x &=& -1 \end{array}\end{align*}

The answer is -1.

#### Example 4

\begin{align*}4x+x+2=10x-13\end{align*}

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

Next, you need to move the terms with variables to the same side of the equation. You subtract \begin{align*}5x\end{align*} from both sides of the equation.

\begin{align*} \begin{array}{rcl} 5x+2 &=& 10x-13 \\ 5x-5x+2 &=& 10x-5x-13 \\ 2 &=& 5x-13 \end{array}\end{align*}

Next, add 13 from both sides of the equation so that only the variable remains on the left hand side.

\begin{align*}\begin{array}{rcl} 2 &=& 5x-13 \\ 2 +13 &=& 5x-13+13 \\ 15 &=& 5x \end{array}\end{align*}

Then, divide both sides by 5.

The answer is 3.

#### Example 5

\begin{align*}8y+2y=20y+10\end{align*}

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

Next, you need to move the terms with variables to the same side of the equation. You subtract

from both sides of the equation.\begin{align*}\begin{array}{rcl} 10y &=& 20y+10 \\ 10y-20y &=& 20y-20y+10 \\ -10y &=& 10 \end{array}\end{align*}

Then, divide both sides by -10.

The answer is -1.

### Review

Solve each equation with variables on both sides.

1.

2.

3.

4.

5.

6. \begin{align*}9y = 2y− 21\end{align*}

7.

8.

9.

10.

11.

12.

13.

14.

15. \begin{align*}10y− 4 = 6y− 12\end{align*}

16.

17. \begin{align*}12y− 8 = 14y + 14\end{align*}

18.

19. \begin{align*}−20y + 8 = −8y− 4\end{align*}

Solve each equation with variables on both sides, by simplifying each equation first by using the distributive property.

20.

21.

22. \begin{align*}9y = 4(y− 5)\end{align*}

### Review (Answers)

To see the Review answers, open this PDF file and look for section 3.8.