Main content

### Course: Pre-algebra > Unit 15

Lesson 1: Intro to systems of equations# Systems of equations: trolls, tolls (1 of 2)

A troll forces us to use algebra to figure out the make-up of his currency. We end up setting up a system of equations. Created by Sal Khan.

## Want to join the conversation?

- Is it possible to solve this problem using the computer science software on Khan Academy?(285 votes)
- It is possible, although Sal's method is by far the easiest.(165 votes)

- Are there other ways to solves these types of equations?(45 votes)
- And there are other ways too, that look different, and use different specific steps, but are ultimately "equivalent" to the above. Matrix Inversion is one such example. That comes with "Linear Algebra", a more advanced topic. The beauty of using matrices to represent your set of linear equations is how well it lends itself to solutions by machine (as opposed to "by hand").(22 votes)

- Sal is on track to replace both my math and art teacher(53 votes)
- hmm, interesting video.(11 votes)
- fr! How is sal that good at drawing tho(30 votes)

- Sal's drawing's are better than Bob Ross lol.(17 votes)
- idk...bob ross has funnier hair(3 votes)

- Love how he's taking real problems and applying math to solve them(11 votes)
- Definitely a real problem.(8 votes)

- I went to secondary school in the very late 70s and early 80s. I was pretty good at maths - not the best but OK. I got a good pass in my GCE O level exam - A, if my memory serves me well. But here's the thing - I don't remember doing half of the stuff I've been learning in this Algebra Basics course. We certainly didn't learn about "systems of equations" and I really don't remember doing "X and Y intercepts" and much more besides. 40 years on, things have very much changed.(15 votes)
- 40 years is like 2.5 times my life(0 votes)

- The real question is why the toll troll is taking U.S Dollars🤑(9 votes)
- idk he should rlly have an exchange system(10 votes)

- why teach this in the 8th grade(11 votes)
- That is a pretty normal time to learn systems of equations.(1 vote)

- Why did he end us on a cliffhanger(8 votes)
- I believe it was too long to fit in one video. There is a part 2 to this video right under this one.(1 vote)

## Video transcript

You are traveling in some type
of a strange fantasy land. And you're trying
to get to the castle up here to save the
princess or the prince or whomever you're
trying to save. But to get there, you
have to cross this river. You can't swim across it. It's a very rough river. So you have to
cross this bridge. And so as you approach the
bridge, this troll shows up. That's the troll. And he says, well, I'm
a reasonable troll. You just have to pay $5. And when you look a
little bit more carefully, you see that there
actually was a sign there that says $5 toll
to cross the bridge. Now, unfortunately
for you, you do not have any money in your pocket. And so the troll says,
well, you can't cross. But you say, I need to really,
really get to that castle. And so the troll says, well,
I'll take some pity on you. Instead of paying the $5,
I will give you a riddle. And the riddle is this. And now, I'm speaking
as the troll. I am a rich troll
because I get to charge from everyone who
crosses the bridge. And actually, I only
accept $5 or $10 bills. It's a bit of a
riddle why they accept American currency in
this fantasy land. But let's just take
that as a given for now. So I only take $5 or $10 bills. I'm being the troll. Obviously, if you give me a
$10, I'll give you $5 back. And I know, because I count
my money on a daily basis. I like to save my
money as the troll. I know that I have a
total of 900 bills. So let me write that down. I have a total of 900 bills, a
total of 900 $5 and $10 bills. And he says, because
I'm very sympathetic, I'll give you another
piece of information. He says, if you were to
add up the value of all of my money, which is all in
$5 and $10 bills that I have, I, speaking as the troll about
dollars bills, is $5,500. This is a rich troll. And so the riddle
is-- exactly, exactly. And if you give the wrong
answer and if you're not able to solve it
in 10 minutes, he's just going to push
you into the river or do something horrible to you. He says, exactly how many 5's
and 10's do I, the troll, have? So the first thing I'm going
to have you think about is, is this even a
solvable problem? Because if it's not
a solvable problem, you should probably
run as fast as you can in the other direction. So now, I will tell you, yes,
it is a solvable problem. And let's start thinking about
it a little bit algebraically. And to do that, let's
just set some variables. And I will set the
variables to be what we're really
trying to solve for. We're trying to solve for the
number of $5 bills we have and the number of $10
bills that we have. So let's just define
some variables. I'll say f for 5. Let's let f equal the number
of $5 bills that we have. And I'll use the same idea. Let's let t is equal to the
number $10 bills that we have. Now, given this
information, and now I'm not sure if I'm
speaking as-- well, let's say I'm still
speaking as the troll. I'm a very sympathetic
troll, and I'm going to give you hints. Given this information and
setting these variables in this way, can I represent
the clues in the riddle mathematically? So let's focus on
the first clue. Can I represent this clue that
the total of 900 $5 and $10 bills, or can I represent
that mathematically, that I have a total of
900 $5 and $10 bills? Well, what's going to
be our total of bills? It's going to be the number of
5's that we have, which is f. The number of 5's
that we have is f. And then the number of
10s that we have is t. The total number of 5's
plus the total number of 10s, that's our
total number of bills. So that's going to
be equal to 900. So this statement, this
first clue in our riddle, can be written
mathematically like this if we defined the
variables like that. And I just said f for 5,
because f for 5 in t for 10. Now, let's look at
the second clue. Can we represent this
one mathematically given these variable definitions
that we created? Well, let's think separately
about the value of the $5 bills and the value of the $10 bills. What's the value of
all of the $5 bills? Well, each $5 bill is worth $5. So it's going to be 5 times
the number of $5 bills that we have. So if I have one $5
bill, it will be $5. If I have 100 $5 bills,
then it's going to be $500. How ever many $5 bills,
I just multiply it by 5. That's the value
of the $5 bills. Let me write that down. Value of the $5 bills. Now, same logic. What's the value
of the $10 bills? Well, the value of
the $10 bills is just going to be 10 times
however many bills I have-- value of the $10 bills. So what's going to be the
total value of my bills? Well, it's going to be
the value of the $5 bills plus the value of the $10 bills? And he tells me what
that total value is. It's $5,500. So if I add these
two things, they're going to add up to be $5,500. So this second statement we
can represent mathematically with this second
equation right over here. And what we essentially
have right over here, we have two equations. Each of them have two unknowns. And just using one
of these equations, we can't really figure
out what f and t are. You can pick a bunch of
different combinations that add up to 900 here. You could pick a bunch of
different combinations, where if you work out all the
math, you get $5,500. So independently,
these equations, you don't know what f and t are. But what we will see over
the next several videos is that if you use both of
this information, if you say that there's
an f and a t that has to satisfy both
of these equations, then you can find a solution. And this is called a
system of equations. Let me write that down--
system of equations.