CHAPTER 5 Solving First Degree Equations in One Variable

5.3 Solve Equations with Variables and Constants on Both Sides

Learning Objectives

By the end of this section, you will be able to:

  • Solve an equation with constants on both sides
  • Solve an equation with variables on both sides
  • Solve an equation with variables and constants on both sides
  • Solve equations using a general strategy

Solve an Equation with Constants on Both Sides

You may have noticed that in all the equations we have solved so far, all the variable terms were on only one side of the equation with the constants on the other side. This does not happen all the time—so now we’ll see how to solve equations where the variable terms and/or constant terms are on both sides of the equation.

Our strategy will involve choosing one side of the equation to be the variable side, and the other side of the equation to be the constant side. Then, we will use the Subtraction and Addition Properties of Equality, step by step, to get all the variable terms together on one side of the equation and the constant terms together on the other side.

By doing this, we will transform the equation that started with variables and constants on both sides into the form ax=b. We already know how to solve equations of this form by using the Division or Multiplication Properties of Equality.

EXAMPLE 1

Solve: 4x+6=-14.

Solution

In this equation, the variable is only on the left side. It makes sense to call the left side the variable side. Therefore, the right side will be the constant side. We’ll write the labels above the equation to help us remember what goes where.

.
Since the left side is the variable side, the 6 is out of place. We must “undo” adding 6 by subtracting 6, and to keep the equality we must subtract 6 from both sides. Use the Subtraction Property of Equality. .
Simplify. .
Now all the xs are on the left and the constant on the right.
Use the Division Property of Equality. .
Simplify. .
Check: .
Let x=-5. .
.
.

TRY IT 1.1

Solve: 3x+4=-8.

Show answer

x = −4

TRY IT 1.2

Solve: 5a+3=-37.

Show answer

a = −8

EXAMPLE 1.2

Solve: 2y-7=15.

Solution

Notice that the variable is only on the left side of the equation, so this will be the variable side and the right side will be the constant side. Since the left side is the variable side, the 7 is out of place. It is subtracted from the 2y, so to ‘undo’ subtraction, add 7 to both sides.

.
Add 7 to both sides. .
Simplify. .
The variables are now on one side and the constants on the other.
Divide both sides by 2. .
Simplify. .
Check: .
Substitute: y=11. .
.
.

TRY IT 2.1

Solve: 5y-9=16.

Show answer

y = 5

TRY IT 2.2

Solve: 3m-8=19.

Show answer

m = 9

Solve an Equation with Variables on Both Sides

What if there are variables 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 too.

EXAMPLE 3

Solve: 5x=4x+7.

Solution

Here the variable, x, is on both sides, but the constants appear only on the right side, so let’s make the right side the “constant” side. Then the left side will be the “variable” side.

.
We don’t want any variables on the right, so subtract the 4x. .
Simplify. .
We have all the variables on one side and the constants on the other. We have solved the equation.
Check: .
Substitute 7 for x. .
.
.

TRY IT 3.1

Solve: 6n=5n+10.

Show answer

n = 10

TRY IT 3.2

Solve: -6c=-7c+1.

Show answer

c = 1

EXAMPLE 4

Solve: 5y-8=7y.

Solution

The only constant, -8, is on the left side of the equation and variable, y, is on both sides. Let’s leave the constant on the left and collect the variables to the right.

.
Subtract 5y from both sides. .
Simplify. .
We have the variables on the right and the constants on the left. Divide both sides by 2. .
Simplify. .
Rewrite with the variable on the left. .
Check: Let y=-4.
.
.
.
.

TRY IT 4.1

Solve: 3p-14=5p.

Show answer

p = −7

TRY IT 4.2

Solve: 8m+9=5m.

Show answer

m = −3

EXAMPLE 5

Solve: 7x=-x+24.

Solution

The only constant, 24, is on the right, so let the left side be the variable side.

.
Remove the -x from the right side by adding x to both sides. .
Simplify. .
All the variables are on the left and the constants are on the right. Divide both sides by 8. .
Simplify. .
Check: Substitute x=3.
.

TRY IT 5.1

Solve: 12j=-4j+32.

Show answer

j = 2

TRY IT 5.2

Solve: 8h=-4h+12.

Show answer

h = 1

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.

EXAMPLE 6

Solve: 7x+5=6x+2.

Solution

Start by choosing which side will be the variable side and which side will be the constant side. The variable terms are 7x and 6x. Since 7 is greater than 6, make the left side the variable side and so the right side will be the constant side.

.
Collect the variable terms to the left side by subtracting 6x from both sides. .
Simplify. .
Now, collect the constants to the right side by subtracting 5 from both sides. .
Simplify. .
The solution is x=-3.
Check: Let x=-3.
.

TRY IT 6.1

Solve: 12x+8=6x+2.

Show answer

x = −1

TRY IT 6.2

Solve: 9y+4=7y+12.

Show answer

y = 4

We’ll summarize the steps we took so you can easily refer to them.

HOW TO: Solve an Equation with Variables and Constants on Both Sides

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

It is a good idea to make the variable side the one in which the variable has the larger coefficient. This usually makes the arithmetic easier.

EXAMPLE 7

Solve: 6n-2=-3n+7.

Solution

We have 6n on the left and -3n on the right. Since 6 > -3, make the left side the “variable” side.

.
We don’t want variables on the right side—add 3n to both sides to leave only constants on the right. .
Combine like terms. .
We don’t want any constants on the left side, so add 2 to both sides. .
Simplify. .
The variable term is on the left and the constant term is on the right.
To get the coefficient of n to be one, divide both sides by 9.
.
Simplify. .
Check: Substitute 1 for n. .

TRY IT 7.1

Solve: 8q-5=-4q+7.

Show answer

q = 1

TRY IT 7.2

Solve: 7n-3=n+3.

Show answer

n = 1

EXAMPLE 8

Solve: 2a-7=5a+8.

Solution

This equation has 2a on the left and 5a on the right. Since 5 > 2, make the right side the variable side and the left side the constant side.

.
Subtract 2a from both sides to remove the variable term from the left. .
Combine like terms. .
Subtract 8 from both sides to remove the constant from the right. .
Simplify. .
Divide both sides by 3 to make 1 the coefficient of a. .
Simplify. .
Check: Let a=-5. .

Note that we could have made the left side the variable side instead of the right side, but it would have led to a negative coefficient on the variable term. While we could work with the negative, there is less chance of error when working with positives. The strategy outlined above helps avoid the negatives!

TRY IT 8.1

Solve: 2a-2=6a+18.

Show answer

a = −5

TRY IT 8.2

Solve: 4k-1=7k+17.

Show answer

k = −6

To solve an equation with fractions, we still follow the same steps to get the solution.

EXAMPLE 9

Solve: \frac{3}{2}\phantom{\rule{0.1em}{0ex}}x+5=\frac{1}{2}\phantom{\rule{0.1em}{0ex}}x-3.

Solution

Since \frac{3}{2} > \frac{1}{2}, make the left side the variable side and the right side the constant side.

.
Subtract \frac{1}{2}x from both sides. .
Combine like terms. .
Subtract 5 from both sides. .
Simplify. .
Check: Let x=-8. .

TRY IT 9.1

Solve: \frac{7}{8}\phantom{\rule{0.1em}{0ex}}x-12=-\frac{1}{8}\phantom{\rule{0.1em}{0ex}}x-2.

Show answer

x = 10

TRY IT 9.2

Solve: \frac{7}{6}\phantom{\rule{0.1em}{0ex}}y+11=\frac{1}{6}\phantom{\rule{0.1em}{0ex}}y+8.

Show answer

y = −3

We follow the same steps when the equation has decimals, too.

EXAMPLE 10

Solve: 3.4x+4=1.6x-5.

Solution

Since 3.4 > 1.6, make the left side the variable side and the right side the constant side.

.
Subtract 1.6x from both sides. .
Combine like terms. .
Subtract 4 from both sides. .
Simplify. .
Use the Division Property of Equality. .
Simplify. .
Check: Let x=-5. .

TRY IT 10.1

Solve: 2.8x+12=-1.4x-9.

Show answer

x = −5

TRY IT 10.2

Solve: 3.6y+8=1.2y-4.

Show answer

y = −5

Solve Equations Using a General Strategy

Each of the first few sections of this chapter has dealt with solving one specific form of a linear equation. It’s time now to lay out an overall strategy that can be used to solve any linear equation. We call this the general strategy. Some equations won’t require all the steps to solve, but many will. Simplifying each side of the equation as much as possible first makes the rest of the steps easier.

HOW TO: Use a General Strategy for Solving Linear Equations

  1. Simplify each side of the equation as much as possible. Use the Distributive Property to remove any parentheses. Combine like terms.
  2. Collect all the variable terms to one side of the equation. Use the Addition or Subtraction Property of Equality.
  3. Collect all the constant terms to the other side of the equation. Use the Addition or Subtraction Property of Equality.
  4. Make the coefficient of the variable term to equal to 1. Use the Multiplication or Division Property of Equality. State the solution to the equation.
  5. Check the solution. Substitute the solution into the original equation to make sure the result is a true statement.

EXAMPLE 11

Solve: 3\left(x+2\right)=18.

Solution

.
Simplify each side of the equation as much as possible.
Use the Distributive Property.
.
Collect all variable terms on one side of the equation—all xs are already on the left side.
Collect constant terms on the other side of the equation.
Subtract 6 from each side
.
Simplify. .
Make the coefficient of the variable term equal to 1. Divide each side by 3. .
Simplify. .
Check: Let x=4. .

TRY IT 11.1

Solve: 5\left(x+3\right)=35.

Show answer

x = 4

TRY IT 11.2

Solve: 6\left(y-4\right)=-18.

Show answer

y = 1

EXAMPLE 12

Solve: -\left(x+5\right)=7.

Solution

.
Simplify each side of the equation as much as possible by distributing.
The only x term is on the left side, so all variable terms are on the left side of the equation.
.
Add 5 to both sides to get all constant terms on the right side of the equation. .
Simplify. .
Make the coefficient of the variable term equal to 1 by multiplying both sides by -1. .
Simplify. .
Check: Let x=-12. .

.

.

.

TRY IT 12.1

Solve: -\left(y+8\right)=-2.

Show answer

y = −6

TRY IT 12.2

Solve: -\left(z+4\right)=-12.

Show answer

z = 8

EXAMPLE 13

Solve: 4\left(x-2\right)+5=-3.

Solution

.
Simplify each side of the equation as much as possible.
Distribute.
.
Combine like terms .
The only x is on the left side, so all variable terms are on one side of the equation.
Add 3 to both sides to get all constant terms on the other side of the equation. .
Simplify. .
Make the coefficient of the variable term equal to 1 by dividing both sides by 4. .
Simplify. .
Check: Let x=0. .

TRY IT 13.1

Solve: 2\left(a-4\right)+3=-1.

Show answer

a = 2

TRY IT 13.2

Solve: 7\left(n-3\right)-8=-15.

Show answer

n = 2

EXAMPLE 14

Solve: 8-2\left(3y+5\right)=0.

Solution

Be careful when distributing the negative.

.
Simplify—use the Distributive Property. .
Combine like terms. .
Add 2 to both sides to collect constants on the right. .
Simplify. .
Divide both sides by −6. .
Simplify. .
Check: Let y=-\frac{1}{3}. .

TRY IT 14.1

Solve: 12-3\left(4j+3\right)=-17.

Show answer

j=\frac{5}{3}

TRY IT 14.2

Solve: -6-8\left(k-2\right)=-10.

Show answer

k=\frac{5}{2}

EXAMPLE 15

Solve: 3\left(x-2\right)-5=4\left(2x+1\right)+5.

Solution

.
Distribute. .
Combine like terms. .
Subtract 3x to get all the variables on the right since 8 > 3. .
Simplify. .
Subtract 9 to get the constants on the left. .
Simplify. .
Divide by 5. .
Simplify. .
Check: Substitute: -4=x. .

TRY IT 14.1

Solve: 6\left(p-3\right)-7=5\left(4p+3\right)-12.

Show answer

p = −2

TRY IT 14.2

Solve: 8\left(q+1\right)-5=3\left(2q-4\right)-1.

Show answer

q = −8

EXAMPLE 15

Solve: \frac{1}{2}\left(6x-2\right)=5-x.

Solution

.
Distribute. .
Add x to get all the variables on the left. .
Simplify. .
Add 1 to get constants on the right. .
Simplify. .
Divide by 4. .
Simplify. .
Check: Let x=\frac{3}{2}. .

TRY IT 15.1

Solve: \frac{1}{3}\left(6u+3\right)=7-u.

Show answer

u = 2

TRY IT 15.2

Solve: \frac{2}{3}\left(9x-12\right)=8+2x.

Show answer

x = 4

In many applications, we will have to solve equations with decimals. The same general strategy will work for these equations.

EXAMPLE 16

Solve: 0.24\left(100x+5\right)=0.4\left(30x+15\right).

Solution

.
Distribute. .
Subtract 12x to get all the xs to the left. .
Simplify. .
Subtract 1.2 to get the constants to the right. .
Simplify. .
Divide. .
Simplify. .
Check: Let x=0.4. .

TRY IT 16.1

Solve: 0.55\left(100n+8\right)=0.6\left(85n+14\right).

Show answer

1

TRY IT 16.2

Solve: 0.15\left(40m-120\right)=0.5\left(60m+12\right).

Show answer

−1

Key Concepts

  • Solve an equation with variables and constants on both sides
    1. Choose one side to be the variable side and then the other will be the constant side.
    2. Collect the variable terms to the variable side, using the Addition or Subtraction Property of Equality.
    3. Collect the constants to the other side, using the Addition or Subtraction Property of Equality.
    4. Make the coefficient of the variable 1, using the Multiplication or Division Property of Equality.
    5. Check the solution by substituting into the original equation.
  • General strategy for solving linear equations
    1. Simplify each side of the equation as much as possible. Use the Distributive Property to remove any parentheses. Combine like terms.
    2. Collect all the variable terms to one side of the equation. Use the Addition or Subtraction Property of Equality.
    3. Collect all the constant terms to the other side of the equation. Use the Addition or Subtraction Property of Equality.
    4. Make the coefficient of the variable term to equal to 1. Use the Multiplication or Division Property of Equality. State the solution to the equation.
    5. Check the solution. Substitute the solution into the original equation to make sure the result is a true statement.

Practice Makes Perfect

Solve an Equation with Constants on Both Sides

In the following exercises, solve the equation for the variable.

1. 7x-8=34 2. 6x-2=40
3. 14y+7=91 4. 11w+6=93
5. 4m+9=-23 6. 3a+8=-46
7. -47=6b+1 8. -50=7n-1
9. 29=-8x-3 10. 25=-9y+7
11. -14\text{q}-15=13 12. -12p-3=15

Solve an Equation with Variables on Both Sides

In the following exercises, solve the equation for the variable.

13. 9k=8k-11 14. 8z=7z-7
15. 6x+27=9x 16. 4x+36=10x
17. b=-4b-15 18. c=-3c-20
19. 7z=39-6z 20. 5q=44-6q
21. 8x+\frac{3}{4}=7x 22. 3y+\frac{1}{2}=2y
23. -15r-8=-11r 24. -12a-8=-16a

Solve an Equation with Variables and Constants on Both Sides

In the following exercises, solve the equations for the variable.

25. 4x-17=3x+2 26. 6x-15=5x+3
27. 21+6f=7f+14 28. 26+8d=9d+11
29. 8q-5=5q-20 30. 3p-1=5p-33
31. 9c+7=-2c-37 32. 4a+5=-a-40
33. 12x-17=-3x+13 34. 8y-30=-2y+30
35. 3y-4=12-y 36. 2\text{z}-4=23-\text{z}
37. \frac{4}{3}\phantom{\rule{0.1em}{0ex}}m-7=\frac{1}{3}\phantom{\rule{0.1em}{0ex}}m-13 38. \frac{5}{4}\phantom{\rule{0.1em}{0ex}}c-3=\frac{1}{4}\phantom{\rule{0.1em}{0ex}}c-16
39. 11-\frac{1}{4}\phantom{\rule{0.1em}{0ex}}a=\frac{3}{4}\phantom{\rule{0.1em}{0ex}}a+4 40. 8-\frac{2}{5}\phantom{\rule{0.1em}{0ex}}q=\frac{3}{5}\phantom{\rule{0.1em}{0ex}}q+6
41. \frac{5}{4}\phantom{\rule{0.1em}{0ex}}a+15=\frac{3}{4}\phantom{\rule{0.1em}{0ex}}a-5 42. \frac{4}{3}\phantom{\rule{0.1em}{0ex}}n+9=\frac{1}{3}\phantom{\rule{0.1em}{0ex}}n-9
43. \frac{3}{5}\phantom{\rule{0.1em}{0ex}}p+2=\frac{4}{5}\phantom{\rule{0.1em}{0ex}}p-1 44. \frac{1}{4}\phantom{\rule{0.1em}{0ex}}y+7=\frac{3}{4}\phantom{\rule{0.1em}{0ex}}y-3
45. 13z+6.45=8z+23.75 46. 14n+8.25=9n+19.60
47. 2.7w-80=1.2w+10 48. 2.4w-100=0.8w+28
49. 6.6x-18.9=3.4x+54.7 50. 5.6r+13.1=3.5r+57.2

Solve an Equation Using the General Strategy

In the following exercises, solve the linear equation using the general strategy.

51. 4\left(y+7\right)=64 52. 5\left(x+3\right)=75
53. 9=3\left(x-3\right) 54. 8=4\left(x-3\right)
55. 14\left(y-6\right)=-42 56. 20\left(y-8\right)=-60
57. -7\left(3n+4\right)=14 58. -4\left(2n+1\right)=16
59. 8\left(3+3\text{p}\right)=0 60. 3\left(10+5r\right)=0
61. \frac{3}{5}\left(10x-5\right)=27 62. \frac{2}{3}\left(9c-3\right)=22
63. 4\left(2.5v-0.6\right)=7.6 64. 5\left(1.2u-4.8\right)=-12
65. 0.5\left(16m+34\right)=-15 66. 0.2\left(30n+50\right)=28
67. -\left(t-8\right)=17 68. -\left(w-6\right)=24
69. 8\left(6b-7\right)+23=63 70. 9\left(3a+5\right)+9=54
71. 13+2\left(m-4\right)=17 72. 10+3\left(z+4\right)=19
73. -9+6\left(5-k\right)=12 74. 7+5\left(4-q\right)=12
75. 18-\left(9r+7\right)=-16 76. 15-\left(3r+8\right)=28
77. 18-2\left(y-3\right)=32 78. 11-4\left(y-8\right)=43
79. 3\left(4n-1\right)-2=8n+3 80. 9\left(p-1\right)=6\left(2p-1\right)
81. 5\left(x-4\right)-4x=14 82. 9\left(2m-3\right)-8=4m+7
83. 5+6\left(3s-5\right)=-3+2\left(8s-1\right) 84. 8\left(x-4\right)-7x=14
85. 4\left(x-1\right)-8=6\left(3x-2\right)-7 86. -12+8\left(x-5\right)=-4+3\left(5x-2\right)

Everyday Math

Making a fence 87.  Jovani has a fence around the rectangular garden in his backyard. The perimeter of the fence is 150 feet. The length is 15 feet more than the width. Find the width, w, by solving the equation 150=2\left(w+15\right)+2w. Concert tickets  88. At a school concert, the total value of tickets sold was \text{\$1,506.} Student tickets sold for \text{\$6} and adult tickets sold for \text{\$9.} The number of adult tickets sold was 5 less than 3 times the number of student tickets. Find the number of student tickets sold, s, by solving the equation 6s+9\left(3s-5\right)=1506.
Coins 89. Rhonda has \text{\$1.90} in nickels and dimes. The number of dimes is one less than twice the number of nickels. Find the number of nickels, n, by solving the equation 0.05n+0.10\left(2n-1\right)=1.90. Fencing 90. Micah has 74 feet of fencing to make a rectangular dog pen in his yard. He wants the length to be 25 feet more than the width. Find the length, L, by solving the equation 2L+2\left(L-25\right)=74.

Writing Exercises

91. When solving an equation with variables on both sides, why is it usually better to choose the side with the larger coefficient as the variable side? 92. Solve the equation 10x+14=-2x+38, explaining all the steps of your solution.
93. What is the first step you take when solving the equation 3-7\left(y-4\right)=38? Explain why this is your first step. 94. Solve the equation \frac{1}{4}\left(8x+20\right)=3x-4 explaining all the steps of your solution as in the examples in this section.
95. Using your own words, list the steps in the General Strategy for Solving Linear Equations. 96. Explain why you should simplify both sides of an equation as much as possible before collecting the variable terms to one side and the constant terms to the other side.

Answers

1. 6 3.6 5. -8
7. -8 9. -4 11. -2
13. -11 15. 9 17. -3
19. 3 21. -3/4 25. 19
27. 7 29. -5 31. -4
33. 2 35. 4 37. -6
39. 7 41. -40 43. 15
45. 3.46 47. 60 49. 23
51. 9 53. 6 55. 3
57. −2 59. −1 61. 5
63. 0.52 65. 0.25 67. −9
69. 2 71. 6 73. 3/2
75. 3 77. −4 79. 2
81. 34 83. 10 85. 2
87. 30 feet 89. 8 nickels 91. Answers will vary.
93. Answers will vary. 95. Answers will vary.

Attributions

This chapter has been adapted from “Solve Equations with Variables and Constants on Both Sides” in Prealgebra (OpenStax) by Lynn Marecek, MaryAnne Anthony-Smith, and Andrea Honeycutt Mathis, which is under a CC BY 4.0 Licence. Adapted by Izabela Mazur. See the Copyright page for more information.

License

Icon for the Creative Commons Attribution 4.0 International License

Introductory Algebra Copyright © 2021 by Izabela Mazur is licensed under a Creative Commons Attribution 4.0 International License, except where otherwise noted.

Share This Book