Steply

Solve by substitution: a + 2b = 7, 3a - b = 7

Step by step, with the reason for every step · Solving by substitution · Algebra 1

Step by step

The question

Question: solve a + 2b = 7 and 3a − b = 7 by substitution.

a + 2b = 7①

We call them ① and ②.

We want the a and b that make both true.

3a − b = 7②

1 Get a alone in ①

No letter is alone yet.

In ①, a has just 1 in front.

So we get a alone there first.

We want a by itself.

The + 2b is in the way.

To remove + 2b, we take away 2b.

We do it on both sides, so they stay equal.

a + 2b − 2b = 7 − 2b

+ 2b and − 2b make zero.

Cross them out.

Write what is left.

a = 7 − 2b

We write the b part first.

Each part keeps its sign.

a is by itself.

We call it ③.

a = −2b + 7③

2 Put ③ into ②

In ③, a is now alone.

a is the same as −2b + 7.

So in ②, we write (−2b + 7) in place of a.

The brackets keep it together.

Putting one thing in place of another is called substitution.

3(−2b + 7) − b = 7

3 Find b

The 3 in front of the bracket multiplies every part inside.

So we write 3 times each part.

3 × (−2b) + 3 × 7 − b = 7

Careful!

Not only the first part!

7 is multiplied by 3 too.

Careful: not −6b + 7 ✗

Work out each multiplication.

−6b + 21 − b = 7

Terms are the parts between the + and − signs.

Like terms are the same kind: same letters, same powers.

All the b terms go together.

−6b − b = −7b.

−6b − b = −7b

Now we have −7b + 21 = 7.

−7b + 21 = 7

We want b by itself.

The + 21 is in the way.

To remove + 21, we take away 21.

We do it on both sides, so they stay equal.

−7b + 21 − 21 = 7 − 21

+ 21 and − 21 make zero.

Cross them out.

7 minus 21 is −14.

7 − 21 = −14

Now we have −7b = −14.

−7b = −14

−7b means −7 times b.

We want just b.

To remove times −7, we divide by −7.

We do it on both sides, so they stay equal.

−7b−7 = −14−7

−7 divided by −7 is 1.

So just b is left.

−14 divided by −7 is 2.

−14−7 = 2

So b = 2.

b = 2

4 Find a

Now we put b = 2 into ③.

a = −2(2) + 7

That is −4 + 7.

a = −4 + 7

So a = 3.

a = 3

So a = 3 and b = 2, both at the same time.

We write it as (3, 2).

On a graph, it is the point where the two lines meet.

(a, b) = (3, 2)

5 Check

Let's check in both equations.

We put a = 3 and b = 2 into ①.

① 3 + 2(2) = 3 + 4 = 7

We get 7, the same as the right side.

Now ②.

② 3(3) − 2 = 9 − 2 = 7

We get 7, the same as the right side.

Both work.

So the answer is right!

Let's look back.

First: get a alone in ①.

Then: put ③ into ②.

Then: find b.

Then: find a.

Last: check.

Answer
(a, b) = (3, 2)

Your turn

Try this one yourself, then check:

Solve a + 3b = 17, 3a − b = 11
Show the answer
(a, b) = (5, 4)

More from Solving by substitution

The whole lesson: Solving by substitution →