Home / Math / Basic algebra

Solving for the unknown

Solve one-step and two-step equations by keeping both sides balanced, and use them to work out hours on a bill, overtime and other real numbers.

Beginner · 10 min read · Updated December 3, 2026

Algebra sounds scary, but you already use it. "The bill was $435 and the service call is $95, so how many hours did they charge?" is an algebra problem. This lesson shows you a simple, reliable way to solve problems like that.

Words to know

  • An unknown is the number you are looking for. We use a letter for it, often x or h for hours.
  • An equation says two things are equal, using an = sign. For example, x + 7 = 15.
  • Solving means finding the number that makes the equation true.

The one big idea: keep it balanced

Think of an equation as a balance scale. The left side and the right side weigh the same. If you take something off one side, you must take the same amount off the other side, or it tips.

Your goal is to get the unknown alone on one side. To do that, undo whatever is being done to it, using the opposite operation:

If the unknown is...Undo it by...
added tosubtracting
subtracted fromadding
multiplieddividing
dividedmultiplying
x + 715minus 7minus 7x = 15 - 7 = 8
Take 7 off both sides and the scale stays level. What is left on the left is x, and the right shows 8.

One-step equations

Example 1: x + 7 = 15

  1. 7 is added to x. Undo it by subtracting 7 from both sides.
  2. x + 7 - 7 = 15 - 7.
  3. x = 8.
  4. Check: 8 + 7 = 15. True.

Example 2: x - 4.5 = 10

  1. 4.5 is subtracted. Add 4.5 to both sides.
  2. x = 14.5.
  3. Check: 14.5 - 4.5 = 10. True.

Example 3: 6x = 42

6x means 6 times x.

  1. x is multiplied by 6. Divide both sides by 6.
  2. 42 ÷ 6 = 7, so x = 7.
  3. Check: 6 x 7 = 42. True.

Example 4: x ÷ 4 = 9

  1. x is divided by 4. Multiply both sides by 4.
  2. x = 36.
  3. Check: 36 ÷ 4 = 9. True.

A work example. You earn $18.50 an hour and your paycheck shows $703 before taxes. How many hours?

  1. 18.50 x h = 703.
  2. Divide both sides by 18.50: h = 703 ÷ 18.50.
  3. h = 38 hours.

Two-step equations

Two-step equations have two things happening to the unknown, usually a multiply and an add. Undo the adding or subtracting first, then the multiplying or dividing. That is the order of operations in reverse.

Example: 3x + 5 = 26

  1. Subtract 5 from both sides: 3x = 21.
  2. Divide both sides by 3: x = 7.
  3. Check: 3 x 7 + 5 = 21 + 5 = 26. True.

Real job examples

How many hours on the bill? A plumber charges a $95 service call plus $85 an hour. The bill is $435.

  1. Write the equation

    Bill = 85 x hours + 95. So 85h + 95 = 435.
  2. Undo the add

    Subtract 95 from both sides: 85h = 340.
  3. Undo the multiply

    Divide both sides by 85: h = 4.
  4. Check

    85 x 4 + 95 = 340 + 95 = 435. The plumber charged 4 hours.

How much overtime? You earn $22 an hour for the first 40 hours and $33 an hour (time and a half) after that. Your gross pay was $1,078. How many overtime hours did you work?

  1. Regular pay: 40 x 22 = $880.
  2. Equation: 880 + 33h = 1,078.
  3. Subtract 880 from both sides: 33h = 198.
  4. Divide by 33: h = 6 overtime hours.
  5. Check: 880 + 33 x 6 = 880 + 198 = 1,078. True.

Common mistakes

  • Changing only one side. Whatever you do to one side, do to the other.
  • Undoing in the wrong order. In a two-step problem, undo the add or subtract first.
  • Dividing only part of a side. If you have 85h = 340, divide the whole right side by 85.

Modern tools

AI assistants like Claude or ChatGPT can solve an equation and show the steps if you type it in. That is a fine way to check your work, but learn the method first, so you know when an answer does not make sense.

Practice

  1. Solve x + 12 = 30.
  2. Solve 8x = 56.
  3. Solve x ÷ 5 = 12.
  4. Solve 4x - 7 = 25.
  5. An electrician charges a $120 call fee plus $90 an hour. The bill is $525. How many hours?

Answers

  1. x = 18. Subtract 12 from both sides.
  2. x = 7. Divide both sides by 8.
  3. x = 60. Multiply both sides by 5.
  4. x = 8. Add 7 to both sides to get 4x = 32, then divide by 4.
  5. 4.5 hours. 90h + 120 = 525, so 90h = 405, and h = 405 ÷ 90 = 4.5.