If you're seeing this message, it means we're having trouble loading external resources on our website.

If you're behind a web filter, please make sure that the domains *.kastatic.org and *.kasandbox.org are unblocked.

## Algebra basics (ASL)

### Course: Algebra basics (ASL)>Unit 2

Lesson 2: Substitution & evaluating expressions (ASL)

# Evaluating expressions with two variables

We've already evaluated expressions with one variable. Now it's time to do it with two variables.
Evaluating expressions with two variablesSee video transcript

## How to evaluate an expression with two variables

Let's say we want to evaluate the expression 10, plus, 2, p, minus, 3, r. Well, first we need to know the values of p and r. For example, to evaluate the expression when start color #11accd, p, equals, 4, end color #11accd and start color #e07d10, r, equals, 5, end color #e07d10, we just replace start color #11accd, p, end color #11accd with start color #11accd, 4, end color #11accd and start color #e07d10, r, end color #e07d10 with start color #e07d10, 5, end color #e07d10:
empty space, 10, plus, 2, start color #11accd, p, end color #11accd, minus, 3, start color #e07d10, r, end color #e07d10
equals, 10, plus, 2, dot, start color #11accd, 4, end color #11accd, minus, 3, dot, start color #e07d10, 5, end color #e07d10
equals, 10, plus, 8, minus, 15
equals, 3
So, the expression 10, plus, 2, p, minus, 3, r equals 3 when p, equals, 4 and r, equals, 5.

## Now, let's practice

Problem 1
• Current
Evaluate 6, a, plus, 4, b, minus, 6 when a, equals, 1 and b, equals, 3.