Piggy Bank: Solving a Coin System

Coin & Money 8th-9th Grade
PROBLEM
Sang-Jin has only quarters and nickels in her piggy bank. She has 66 coins in the bank with a value of $13.50. How many quarters are in Sang-Jin's piggy bank?

What This Problem Teaches

  • Setting up systems of equations from real-world constraints
  • Converting between dollars and cents to avoid decimal arithmetic
  • Using substitution method to solve two-variable systems
  • Recognizing when two pieces of information create exactly the system you need
  • Verification strategies for checking solutions in context

Solution: Method 1 — The System Setup

This is a classic two-constraint problem. We have information about both the count of coins and their total value. That gives us exactly what we need for a system of equations.

Step 1 — Define variables

Let q = number of quarters and n = number of nickels.

Step 2 — Write the count equation

Sang-Jin has 66 coins total:

q + n = 66

Step 3 — Write the value equation

First, convert $13.50 to cents to avoid decimals: $13.50 = 1350¢. Each quarter is worth 25¢ and each nickel is worth 5¢:

25q + 5n = 1350

Step 4 — Solve by substitution

From the count equation, we can express nickels in terms of quarters:

n = 66 - q

Substitute this into the value equation:

25q + 5(66 - q) = 1350

Step 5 — Simplify and solve

Distribute the 5:

25q + 330 - 5q = 1350

Combine like terms:

20q + 330 = 1350

Subtract 330 from both sides:

20q = 1020

Divide by 20:

q = 51

Step 6 — Find the number of nickels

Using n = 66 - q:

n = 66 - 51 = 15

Solution: Method 2 — The Replacement Strategy

Here's a completely different way to think about it. Instead of algebra, we'll imagine replacing coins to see what happens to the value.

Step 1 — Start with all nickels

Imagine all 66 coins were nickels. The total value would be:

66 × 5¢ = 330¢ = $3.30

Step 2 — Calculate the value gap

But we actually have $13.50, which is 1350¢. The difference is:

1350¢ - 330¢ = 1020¢

Step 3 — Find the value gain per replacement

Each time we replace a nickel (5¢) with a quarter (25¢), we gain:

25¢ - 5¢ = 20¢

Step 4 — Calculate needed replacements

To gain 1020¢ total, we need:

1020¢ ÷ 20¢ = 51 replacements

So we need 51 quarters and 15 nickels remaining.

Sang-Jin has 51 quarters in her piggy bank.

Verification

Let's verify our answer satisfies both original constraints:

Count check: 51 + 15 = 66 coins ✓

Value check:

  • 51 quarters: 51 × 25¢ = 1275¢
  • 15 nickels: 15 × 5¢ = 75¢
  • Total: 1275¢ + 75¢ = 1350¢ = $13.50 ✓

Both constraints are satisfied, confirming our solution.

Common Pitfalls

✗ Mistake 1: Mixing dollars and cents

Writing 0.25q + 0.05n = 13.50 and then getting confused with decimal arithmetic. This often leads to calculation errors when students forget to carry decimal places correctly.

✗ Mistake 2: Setting up the wrong value equation

Writing q + n = 13.50 or 25q + 5n = 66. Students sometimes confuse which constraint refers to count versus value. Always check: Does this equation make sense dimensionally?

✗ Mistake 3: Forgetting to answer the actual question

Solving the system correctly but then stating "The answer is 51 and 15" without specifying which number represents quarters. The problem asks specifically for the number of quarters.

The Pattern Behind This

All two-coin problems follow this same structure. If you have coins worth a cents and b cents, with n total coins worth v total cents, then:

x + y = n
ax + by = v

Where x and y are the quantities of each coin type. The substitution method always works: solve the first equation for one variable, substitute into the second, and solve.

The replacement strategy also generalizes: start with all coins of the lower value, then calculate how many need to be "upgraded" to reach the target value. The number of upgrades equals (v - nb)/(a - b).

Does This Seem Reasonable?

Let's check if 51 quarters out of 66 coins makes intuitive sense.

Quarters are worth 5 times as much as nickels, so if we had equal numbers of each, quarters would contribute 5/6 of the total value. But we actually have mostly quarters (51 out of 66), so they should contribute even more than 5/6 of the value.

Indeed: 51 quarters contribute $12.75 out of $13.50, which is about 94% of the value. That fits perfectly with having about 77% quarters by count but quarters being worth 5 times as much.

Where This Shows Up in Real Life

  • Business inventory: Mixing two products with different prices to achieve a target revenue
  • Investment portfolios: Balancing high-yield and low-yield investments to meet return goals
  • Manufacturing: Combining materials of different costs to stay within budget constraints

What If?

1
Different Coin Values
Sang-Jin has only quarters and dimes in her piggy bank. She has 66 coins worth $14.10. How many quarters does she have?
Step 1 — Set up the system

Let q = quarters, d = dimes. Then q + d = 66 and 25q + 10d = 1410 cents.

Step 2 — Substitute

From the first equation: d = 66 - q. Substitute: 25q + 10(66 - q) = 1410

Step 3 — Solve

25q + 660 - 10q = 1410, so 15q = 750, giving q = 50

Step 4 — Find dimes

d = 66 - 50 = 16 dimes

Step 5 — Verify

Check: 50 + 16 = 66 ✓ and 50×25¢ + 16×10¢ = 1250¢ + 160¢ = 1410¢ ✓

Answer: 50 quarters

2
Three Coin Types
Sang-Jin has quarters, dimes, and nickels. She has 66 coins worth $13.50, and twice as many nickels as dimes. How many quarters?
Step 1 — Define variables

Let q = quarters, d = dimes, n = nickels. Given: n = 2d

Step 2 — Set up equations

Count: q + d + n = 66. Value: 25q + 10d + 5n = 1350

Step 3 — Substitute n = 2d

q + d + 2d = 66 becomes q + 3d = 66

25q + 10d + 5(2d) = 1350 becomes 25q + 20d = 1350

Step 4 — Solve the 2×2 system

From first equation: q = 66 - 3d. Substitute: 25(66 - 3d) + 20d = 1350

1650 - 75d + 20d = 1350, so -55d = -300, giving d = 5.45...

Step 5 — Adjust to whole numbers

Since coins must be whole, try d = 6: then n = 12 and q = 66 - 3(6) = 48

Check value: 48×25¢ + 6×10¢ + 12×5¢ = 1200¢ + 60¢ + 60¢ = 1320¢ ≠ 1350¢

This problem has no integer solution with the given constraints.

3
Reverse: Find the Value
Sang-Jin has 51 quarters and 15 nickels. She adds 8 more quarters. How many coins does she have now and what is the total value?
Step 1 — Count total coins

Original: 51 quarters + 15 nickels = 66 coins

After adding 8 quarters: 66 + 8 = 74 coins

Step 2 — Count each type

New amounts: 51 + 8 = 59 quarters, still 15 nickels

Step 3 — Calculate total value

Quarters: 59 × 25¢ = 1475¢

Nickels: 15 × 5¢ = 75¢

Total: 1475¢ + 75¢ = 1550¢ = $15.50

Step 4 — Verify the addition

Original value was $13.50. Added 8 quarters worth 8 × $0.25 = $2.00

New value: $13.50 + $2.00 = $15.50 ✓

Answer: 74 coins worth $15.50

4
Higher Value Coins
Sang-Jin has only quarters and dollar coins. She has 66 coins worth $38.00. How many of each type does she have?
Step 1 — Set up the system

Let q = quarters, d = dollar coins

Count: q + d = 66. Value: 25q + 100d = 3800 cents

Step 2 — Solve by substitution

From count equation: q = 66 - d

Substitute: 25(66 - d) + 100d = 3800

Step 3 — Simplify

1650 - 25d + 100d = 3800

1650 + 75d = 3800

75d = 2150

d = 28.67...

Step 4 — Find integer solution

Try d = 28: q = 66 - 28 = 38

Value check: 38 × 25¢ + 28 × 100¢ = 950¢ + 2800¢ = 3750¢ = $37.50

Try d = 29: q = 66 - 29 = 37

Value check: 37 × 25¢ + 29 × 100¢ = 925¢ + 2900¢ = 3825¢ = $38.25

This problem has no exact integer solution. Closest: 37 quarters, 29 dollar coins ($38.25)

Frequently Asked Questions

How do you set up a system of equations for coin problems? +
Write one equation for the count of coins and one for their total value. If q = quarters and n = nickels, then q + n = total coins and 25q + 5n = total cents. In this problem: q + n = 66 and 25q + 5n = 1350.
What's the fastest way to solve two-coin problems? +
Use the substitution method. From the count equation, express one variable in terms of the other (n = 66 - q), then substitute into the value equation. This eliminates one variable and gives you a simple equation to solve.
Why convert dollars to cents in coin problems? +
Working in cents avoids decimal arithmetic and reduces calculation errors. Here, $13.50 becomes 1350 cents, so the value equation uses whole numbers: 25q + 5n = 1350 instead of 0.25q + 0.05n = 13.50.
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-11-24