Steply

Shirts cost $12 and hats cost $8. Ana spends $96. Write the equation.

Step by step, with the reason for every step · Two things, one total · Algebra 1

Step by step

The question

Question: Shirts cost $12 and hats cost $8.

Ana spends $96.

Write the equation.

1 Find what we know

What do we know?

Shirts cost $12 each.

Hats cost $8 each.

Ana spends $96 in all.

What do we want?

An equation for this story.

2 Name the unknowns

We don't know how many shirts.

We call that number x.

x = number of shirts

We don't know how many hats either.

It is a different number, so it gets its own letter: y.

y = number of hats

3 Write the equation

One shirt costs $12.

So x shirts cost 12 times x: 12x.

x shirts: 12 × x = 12x

One hat costs $8.

So y hats cost 8 times y: 8y.

y hats: 8 × y = 8y

In words: the shirt money plus the hat money makes all the money.

12x + 8y = 96

So the equation is 12x + 8y = 96.

12x + 8y = 96

Careful!

x + y counts the shirts and hats, not the money.

The money is 12x + 8y.

Careful: not x + y = 96 ✗

4 Check

Let's test the equation with one buy that costs $96.

We try 1 shirt first.

1 shirt costs $12.

$84 is left.

84 divided by 8 is not a whole number.

We can't buy part of a hat.

Next try.

1 shirt: $12, $84 left, 84 ÷ 8 = 10.5 ✗

2 shirts cost $24.

$72 is left.

72 divided by 8 is 9: 9 hats.

2 shirts: $24, $72 left, 72 ÷ 8 = 9 hats ✓

Put x = 2 and y = 9 in: 24 plus 72 is 96.

The equation works!

12 × 2 + 8 × 9 = 24 + 72 = 96

Let's look back.

First: find what we know.

Then: name the unknowns.

Then: write the equation.

Last: check.

Answer
Careful: not x + y = 96 ✗

Your turn

Try this one yourself, then check:

Show the answer
13x + 4y = 93

More from Two things, one total

The whole lesson: Two things, one total →