System of Equations: Sorting 5¢ and 10¢ Bottles

Number Puzzle • Systems of Equations 9th–10th Grade
Problem

A local organization collected 405 returnable bottles and cans. Some are worth 5 cents each; the rest are worth 10 cents each. The total value was $30.55. How many 5-cent and 10-cent bottles or cans were collected?

Already Got the Answer? Check It Here

  • Setup:x + y = 405 and 5x + 10y = 3055 (x = five-cent count, y = ten-cent count, value in cents)
  • Answer: 199 five-cent items and 206 ten-cent items
  • One-line check:199 + 206 = 405 and 995¢ + 2060¢ = 3055¢ = $30.55

If your numbers differ, the most common culprit is mixing dollars and cents in the same equation. See the pitfalls section below.

What You Will Learn

This is a two-unknown counting problem. The skill is not the arithmetic, which is gentle, but translating one story into two different equations that each carry a different piece of information.

  • Translating "how many" and "how much" separately. One equation tracks quantity (items); the other tracks value (money). Keeping those two ideas apart is the heart of every coin, ticket, and mixture problem.
  • Choosing a single unit. Why $30.55 should become 3055¢ before it goes anywhere near an equation.
  • Substitution as a tool. Eliminating one variable by expressing it through the other.
  • Reasoning without variables. The "pretend they're all 5¢" argument and the weighted-average argument reach the same answer by pure logic, which is a powerful way to check algebra.
  • Judging reasonableness. Bounding an answer between the "all cheap" and "all expensive" extremes before computing anything.

Let's Organize What We Know

Before writing any equation, sort the information into a table. Each row is a type of container; each column is a different "measurement." The unknowns get variables, and the table practically writes the equations for you.

Table showing 5-cent and 10-cent bottle counts and values. Totals are in cents; $30.55 = 3055¢.
TypeValue eachHow manyTotal value (¢)
5-cent items5¢x5x
10-cent items10¢y10y
Total—4053055

Read the table by columns. The "How many" column must add to 405, and the "Total value" column must add to 3055. Those two column sums are our two equations.

Solution: Method 1 — The Two-Unknown System with Substitution

Step 1 — Name the unknowns

Let x be the number of 5-cent bottles and cans, and let y be the number of 10-cent bottles and cans. Writing this down in words first prevents the classic mix-up of which letter means what.

Step 2 — Write the count equation

Every container is one type or the other, so the two counts must add to the total number collected:

x + y = 405

Step 3 — Write the value equation in cents

A 5-cent item contributes 5 cents, so x of them contribute 5x cents. Likewise y ten-cent items contribute 10y cents. The total of $30.55 is the same as 3055 cents (since $1 = 100¢, multiply 30.55 by 100).

5x + 10y = 3055

Step 4 — Substitute

The count equation is easy to rearrange: x = 405 − y. Put that expression in place of x in the value equation. Notice that the parentheses matter, because the 5 multiplies the entire expression.

5(405 − y) + 10y = 3055
2025 − 5y + 10y = 3055
2025 + 5y = 3055
5y = 1030
y = 206

Step 5 — Back-solve for the other unknown

Now that y is known, return to the simple equation:

x = 405 − 206 = 199

There are 199 five-cent items and 206 ten-cent items.

Solution: Method 2 — The "Pretend They're All 5¢" Deficit Method

You can solve this with no variables at all. This reasoning was the standard tool long before algebra notation existed, and it builds real intuition for what the system is doing.

Step 1 — Start with a deliberately wrong assumption

Imagine every one of the 405 containers is worth only 5¢. The pile would be worth:

405 × 5¢ = 2025¢ = $20.25

Step 2 — Measure the shortfall

The real pile is worth 3055¢, so our pretend pile is short by:

3055¢ − 2025¢ = 1030¢

Step 3 — Fix the shortfall one container at a time

Upgrading a single container from 5¢ to 10¢ adds exactly 5¢ to the total. To make up 1030¢ we need to upgrade:

1030 ÷ 5 = 206 containers

Those 206 are the ten-cent items. The rest, 405 − 206 = 199, remain five-cent items. Same answer, no unknowns required.

Why this works

The "5¢ per swap" step is just the difference in value, 10 − 5. The method is the substitution from Method 1 in disguise: the term 2025 + 5y in Step 4 above is literally "all at 5¢, plus 5¢ for each upgrade."

Solution: Method 3 — Weighted Average (the Balance-Point View)

Here is a third lens, and it is useful whenever a problem gives you a total count and a total value. Ask: what is the average value of one container?

Step 1 — Compute the average value

3055¢ ÷ 405 ≈ 7.54¢ per container

The average falls between 5¢ and 10¢, which it must. It sits only slightly above the midpoint of 7.5¢, so there should be slightly more 10¢ items than 5¢ items.

Step 2 — Measure distances from the average, working in whole cents

The ratio of 5¢ items to 10¢ items equals the ratio of the distances on the opposite sides of the average. A cheaper-than-average item is balanced by an expensive-than-average one, like a seesaw. Using exact values (average = 3055/405):

distance of 10¢ above avg: 10 − 3055/405 = 995/405
distance of 5¢ below avg: 3055/405 − 5 = 1030/405

(5¢ items) : (10¢ items) = 995 : 1030 = 199 : 206

Step 3 — Scale the ratio up to 405

The ratio 199 : 206 already totals 199 + 206 = 405, so the scale factor is 1. The counts are exactly 199 and 206.

Note the "crossed" feel

The 5¢ items pair with the larger distance on the 10¢ side's complement... in practice, just remember: the weights balance when count × distance matches on both sides, so the type that is closer to the average appears more often.

The Answer

The organization collected 199 five-cent bottles and cans and 206 ten-cent bottles and cans (199 + 206 = 405 containers worth $30.55 in total).

Verification

We check the answer against both original statements, not against the rearranged versions we created along the way.

TypeValue eachHow manyTotal value
5-cent items5¢199995¢
10-cent items10¢2062060¢
Total—4053055¢
Count:199 + 206 = 405 ✓
Value:5(199) + 10(206) = 995 + 2060 = 3055 cents, and 3055¢ = $30.55 ✓
Independent check: all three methods produced the same pair of numbers.

Here is the same answer as a picture. The bar is one row of 405 containers, cut into two parts:

A local organization collected 405 returnable bottles and cans. Some are worth 5 cents each; the rest are worth 10...

Sanity Check Before You Move On

A good habit is to bracket the answer before solving. The pile's value is trapped between two extremes:

ScenarioCalculationTotal
All 405 are 5¢405 × 5¢$20.25
Exactly half and half (average 7.5¢)405 × 7.5¢$30.375
Actual pile3055¢ total$30.55
All 405 are 10¢405 × 10¢$40.50

$30.55 sits well inside the $20.25 to $40.50 range, so a solution exists. It is just a hair above the "half and half" value of $30.375, so we expect the two counts to be close, with the 10¢ group a little larger. We found 199 and 206. That is exactly the pattern predicted.

Also note that every total made from 5¢ and 10¢ items is a multiple of 5 cents, and 3055 is. A total like $30.52 could never come from this pile, which is a nice quick test for whether a problem like this is even possible.

What Trips People Up

✗ 5x + 10y = 30.55

Mixed units. The 5 and 10 are in cents but 30.55 is in dollars, so the equation says the pile is worth 30.55 cents. Either convert the total to cents (5x + 10y = 3055) or convert the coin values to dollars (0.05x + 0.10y = 30.55). Pick one unit and stay there.

✗ 5x + 10y = 405 and x + y = 3055

Totals swapped between equations. The number 405 counts things; 3055 counts cents. A reliable guard is to check the units of every term. In x + y, each term is a number of containers, so the right side must also be a count.

✗ 5(405 − y) + 10y = 3055 → 405 − 5y + 10y = 3055

Distributing to only the first term. After substituting x = 405 − y, the 5 multiplies both 405 and y, giving 2025 − 5y. Dropping the 5 on the 405 is the most common slip in this exact problem.

✗ "x = 199, so the answer is 199."

Stopping at one variable. The question asks for both counts. After finding one unknown, always return to the story and ask, "What else was I asked for?" Label your final numbers: 199 five-cent, 206 ten-cent.

How to Spot This Problem Type

Look for these structural clues. Wording changes, but the skeleton does not:

  • Two kinds of item with different per-item values (cents, dollars, points, prices, legs).
  • A total count ("405 bottles and cans in all") anda total value ("worth $30.55").
  • Questions that ask "how many of each."
  • A number of equally disguised cousins: adult and child tickets, 2-point and 3-point baskets, nickels and dimes, chickens and rabbits.
A disguised twin

"A theater sold 300 tickets, some at $8 and the rest at $12, for $2,920 in total. How many of each?" Count equation x + y = 300, value equation 8x + 12y = 2920. Same skeleton, different costume. (Try the deficit method: 300 × 8 = 2400, shortfall 520, divided by 4 per upgrade gives 130 twelve-dollar tickets and 170 eight-dollar tickets.)

The Pattern Behind This Problem

Any problem of this type has the same four ingredients: a total count N, a lower per-item value a, a higher per-item value b, and a total value V. Method 2 generalizes to a direct formula:

# of higher-value items = (V − a·N) ÷ (b − a)
# of lower-value items = N − (# of higher-value items)

For our numbers: (3055 − 5·405) ÷ (10 − 5) = 1030 ÷ 5 = 206.

Limits of the formula

It only works for exactly two kinds of item. And a valid answer needs the result to be a whole number between 0 and N. If you get 206.4 or −12, the problem is not consistent as stated: no mix of 5¢ and 10¢ items makes that total. A third type of item (say 25¢ cans) would need a third equation, as in What-If #3 below.

The same idea also drives the weighted-average view in Method 3, where V/N is the mean value per item. The more the mean leans toward b, the more items must be of type b. Once you see this, mixture problems, investment splits, and even "what grade do I need on the final?" questions all look like one family.

Beyond the Textbook

  • Cash-drawer audits. A cashier who knows the number of bills and their total can check how many are $5s versus $10s without sorting them.
  • Recycling and deposit programs. Collection centers reconcile item counts with payouts, just like this problem, only with more container categories.
  • Blending in chemistry and food science. Mixing a 5% solution with a 10% solution to hit a target concentration uses exactly the weighted-average reasoning of Method 3.

A Brief History: Chickens and Rabbits

The "deficit" idea in Method 2 appears in the Sunzi Suanjing, a Chinese mathematical text from roughly the 4th–5th century. It asks: a cage holds some chickens and rabbits with 35 heads and 94 feet in total, so how many of each? Solvers assume every animal is a chicken (two feet each), then upgrade animals to rabbits at two extra feet per swap. Our bottles-and-cans problem has precisely the same logic. Such problems have survived for over 1,500 years because they are the cleanest training ground for turning a story into a pair of constraints.

Try These Variations

Each card below changes one thing about the original, and each has a full solution waiting behind the button. Try it on paper first. The sequence gets harder as it goes.

1
A Bigger Payout

Suppose the organization again collected 405 returnable bottles and cans, each worth 5 cents or 10 cents, but this time the total value was $33.00. How many of each type were collected?

Step 1 — Define variables and units

Let x = number of 5¢ items and y = number of 10¢ items. Convert the total: $33.00 = 3300¢.

Step 2 — Write the system

x + y = 405 and 5x + 10y = 3300.

Step 3 — Substitute

With x = 405 − y: 5(405 − y) + 10y = 3300, so 2025 + 5y = 3300.

Step 4 — Solve

5y = 1275, so y = 255. Then x = 405 − 255 = 150.

Step 5 — Verify

Count: 150 + 255 = 405 ✓. Value: 5(150) + 10(255) = 750 + 2550 = 3300¢ = $33.00 ✓.

Answer: 150 five-cent items and 255 ten-cent items. Notice that a larger payout means more 10¢ items, matching the intuition from the sanity check.

2
A Different Kind of Clue

At another recycling drive, the volunteers did not record the total number of containers. They only noted that there were 60 more 10-cent containers than 5-cent containers, and that the total value was $29.10. How many containers of each type were collected?

Step 1 — Choose a single unknown

Let x = number of 5¢ containers. Then the 10¢ containers number x + 60. Convert the total: $29.10 = 2910¢.

Step 2 — Write the value equation

5x + 10(x + 60) = 2910.

Step 3 — Expand and combine

5x + 10x + 600 = 2910, which gives 15x + 600 = 2910.

Step 4 — Solve

15x = 2310, so x = 154. The 10¢ count is 154 + 60 = 214.

Step 5 — Verify

Difference: 214 − 154 = 60 ✓. Value: 5(154) + 10(214) = 770 + 2140 = 2910¢ = $29.10 ✓.

Answer: 154 five-cent containers and 214 ten-cent containers (368 in all).

3
Enter the Quarter

A larger drive collected 405 containers worth 5 cents, 10 cents, or 25 cents each. The total value was $32.25, and there were exactly twice as many 10-cent containers as 25-cent containers. How many containers of each type were collected?

Step 1 — Tie everything to one variable

Let z = number of 25¢ containers. Then the 10¢ containers number y = 2z, and the 5¢ containers are whatever is left: x = 405 − 2z − z = 405 − 3z.

Step 2 — Write the value equation in cents

5(405 − 3z) + 10(2z) + 25z = 3225.

Step 3 — Expand and combine

2025 − 15z + 20z + 25z = 3225, so 2025 + 30z = 3225.

Step 4 — Solve and back-substitute

30z = 1200, so z = 40. Then y = 80 and x = 405 − 120 = 285.

Step 5 — Verify

Count: 285 + 80 + 40 = 405 ✓. Value: 5(285) + 10(80) + 25(40) = 1425 + 800 + 1000 = 3225¢ = $32.25 ✓. Ratio: 80 = 2 × 40 ✓.

Answer: 285 five-cent, 80 ten-cent, and 40 twenty-five-cent containers. The extra relationship "twice as many" replaced the missing third equation.

4
Unknown Values, Known Counts

Reverse the original problem: suppose you are told that 199 of the 405 containers are worth a cents each, and the other 206 are worth 5 cents more than that, a + 5 cents each. The total value is still $30.55. What are the two per-container values?

Step 1 — Identify the unknown

This time the counts are known and the unknown is the value a (in cents). The other value is a + 5. The total is 3055¢.

Step 2 — Write the value equation

199a + 206(a + 5) = 3055.

Step 3 — Expand

199a + 206a + 1030 = 3055, so 405a + 1030 = 3055.

Step 4 — Solve

405a = 2025, so a = 5. The higher value is a + 5 = 10.

Step 5 — Verify

199(5) + 206(10) = 995 + 2060 = 3055¢ = $30.55 ✓, and 10 − 5 = 5 ✓.

Answer: the two values are 5 cents and 10 cents. The same facts can be read in either direction: given the values, find the counts, or given the counts, find the values.

Frequently Asked Questions

Use two unknowns and two equations: one equation counts the items, and the other adds up the money, with every amount in the same unit (cents). In this example, 405 items worth 5¢ or 10¢ with a total of 3055¢ give x + y = 405 and 5x + 10y = 3055. Substituting x = 405 − y gives 2025 + 5y = 3055, so y = 206 ten-cent items and x = 199 five-cent items.
Every term in a value equation must use the same unit. Converting to cents turns decimals into whole numbers and prevents the common mistake of writing 5x + 10y = 30.55. In this example, $30.55 becomes 3055 cents, and the equation 5x + 10y = 3055 mixes nothing: 5 and 10 are cents per item, and 3055 is total cents.
Yes, with the assumption (or "all-at-the-lower-value") method. Pretend every item has the lower value, find the shortfall against the real total, then divide by the difference in value to see how many items must be upgraded. In this example, 405 items at 5¢ would total 2025¢, but the real total is 3055¢. The gap of 1030¢ divided by the 5¢ difference per swap means 206 items are worth 10¢, leaving 199 worth 5¢.
NJ
Neven Jurkovic, PhD

Professor of Computer Science, Palo Alto College, Alamo Colleges District, San Antonio, TX

Developer of Algebrator

Contact

This solution was prepared with AI assistance and reviewed by Dr. Jurkovic for mathematical accuracy and pedagogical clarity.

2026-10-30