Lesson 03 · Chicken & Cow Counting Problems

Chicken & Cow Counting Problems

You know two totals. The things come in two types. Find each.
CHAPTER 1.1 · DISCOVER

The farmer's problem

A farmer has chickens and cows. Counting heads, there are 8 animals. Counting legs, there are 22 legs. How many of each?

★ Guess first — before the wand

No peeking. Just from reading the problem, write your best guess for the number of cows. You can be wrong — guessing builds intuition for what makes sense.

Number of cows:
The wizard's trick: Imagine for a moment that all the animals are chickens. Eight chickens × 2 legs each = 16 legs. But the farmer counted 22 legs. That means 6 extra legs are sitting on the ground, with no animal attached to them.

You have a magic wand. Each wave can pick up 2 extra legs and attach them to a chicken — turning it into a cow. Keep waving until all the extra legs are gone. The number of cows you made is the answer.
🐄 Cows: 0
🐔 Chickens: 8
Total legs: 16
EXTRA LEGS ON THE GROUND
There are 6 extra legs on the ground. Wave the wand to turn a chicken into a cow using 2 extra legs!
CHAPTER 1.2 · DISCOVER

What just happened, in words

You started with 8 chickens, 16 legs, and 6 extra legs nobody could use.

Each wave: −2 extra legs, −1 chicken, +1 cow, +2 legs on an animal.

You waved 3 times. Each wave used 2 extra legs. 3 × 2 = 6. All extra legs gone. You couldn't wave again because there were no extras left.

That's the answer: 3 cows. The rest, 8 − 3 = 5, are chickens.

CHAPTER 1.3 · DISCOVER

Why the wand works

The wand isn't a trick. You were actually doing the math, just slowly enough to watch it happen. Every wave did three things at once:

  • turned 1 chicken into 1 cow,
  • used up 2 of the extra legs,
  • kept the total animal count the same.

You didn't have to know the answer at the start. You just kept waving until there were no extra legs left. The number of waves was the answer.

Watch out for the "eyes" trick

Some textbooks dress up this problem with eyes instead of heads:

"A farmer has chickens and cows. Counting eyes, there are 16. Counting legs, there are 22. How many of each?"

This looks harder, but it's actually easier. Chickens and cows both have 2 eyes each. So the eye count is just twice the animal count: 16 eyes ÷ 2 = 8 animals. Now you have the same problem as before — 8 animals, 22 legs.

Whenever a problem uses a feature that's the same for both kinds (eyes, ears, tails, beaks count nothing different), divide it down to get the head count first. Then carry on with the wand as usual.

The same idea fits a lot of problems

Anywhere you have two kinds of things, a total count, and a total value, this same move works. The next chapter shows it in five completely different settings:

  • Coins in a jar — dimes and quarters, a total number of coins, and a total amount of money.
  • Tickets at a cinema — child and adult, a total count, and a total amount of revenue.
  • Bugs in a jar — beetles and spiders, a total bug count, and a total leg count.
  • Vehicles in a car park — cars and motorcycles, a total vehicle count, and a total wheel count.
  • Basketball shots — 2-pointers and 3-pointers, a total shot count, and a total points scored.

Same wand, different costumes. Read the setup, decide which type is "the cheaper one," pretend they're all that kind, count the surplus, and wave.

★ MINI-QUIZ · DISCOVER

Try the wand idea on your own

One quick problem to make sure the wand mechanic clicks. Type your answer and click CHECK.

MINI-QUIZ Q1 · CH 1
A farm has chickens and cows. There are 9 animals and 26 legs in total. How many cows?
cows
All chickens → 18 legs. Surplus = 26 − 18 = 8 legs. Each cow upgrade adds 2 legs. Cows = 8 ÷ 2 = 4 cows. (5 chickens.)
CHAPTER 2.1 · VARIANTS

Try the wand in a new costume

The chickens-and-cows wand wasn't really about animals. The same machinery works whenever you have two types of things, a total count, and a total value. Here are three problems that look completely different on the surface but use the exact same waving mechanic.

Variant A · Coins in a jar

A jar has 12 coins. They are dimes (10¢) and quarters (25¢). Together they are worth 195¢ ($1.95). How many of each kind?

Wand setup: Imagine all 12 are dimes — that's only 120¢. The jar actually has 195¢, so there are 75¢ of surplus value. Each wave upgrades a dime to a quarter, adding 15¢ of value.
CHAPTER 2.2 · VARIANTS

The cinema kiosk

Variant B · The cinema kiosk

A cinema sold 20 tickets in one hour and took in $148. Tickets cost $5 (child) or $9 (adult). How many of each?

Wand setup: If all 20 were child tickets, revenue would be only $100. Actual revenue is $148, so $48 of surplus. Each "wave" upgrades a child ticket to an adult ticket, adding $4 to revenue.
CHAPTER 2.3 · VARIANTS

Beetles and spiders

Variant C · Beetles and spiders in a jar

A jar holds 10 bugs. Beetles have 6 legs; spiders have 8 legs. Counting carefully, there are 68 legs in total. How many of each?

Wand setup: If all 10 were beetles, that's 60 legs. The jar has 68, so 8 extra legs sit on the ground. Each wave turns a beetle into a spider, adding 2 legs.

Notice: each problem was different in its story, but the moves were identical. Pick the base. Compute what "all base" would give. The gap is the surplus. Each upgrade closes the gap by a fixed amount. Number of waves = surplus ÷ per-wave gap.

CHAPTER 2.4 · VARIANTS

Cars and motorcycles

Same idea, different vehicles. In a car park you count vehicles and you count wheels. A car has 4 wheels; a motorcycle has 2. If you know both totals, you can find how many of each.

Variant D · A car park puzzle

A car park has 15 vehicles. Cars have 4 wheels; motorcycles have 2 wheels. Counting wheels, there are 48 wheels in total. How many of each?

Wand setup: Imagine all 15 are motorcycles — that's only 30 wheels. The park has 48, so 18 extra wheels need a home. Each wave upgrades a motorcycle to a car, adding 2 wheels.
CHAPTER 2.5 · VARIANTS

Basketball points

In basketball, a shot from close to the basket is worth 2 points; a shot from far behind the three-point line is worth 3 points. If you know how many shots a player made and how many total points they scored, the wand finds the breakdown.

Variant E · A game's scoreboard

A player made 20 shots in a game. Some were 2-pointers and some were 3-pointers. Her total was 47 points. How many of each kind did she make?

Wand setup: Imagine all 20 were 2-pointers — that's only 40 points. She scored 47, so 7 extra points need a home. Each wave upgrades a 2-pointer to a 3-pointer, adding 1 point.
★ MINI-QUIZ · VARIANTS

Two of your own

MINI-QUIZ Q1 · CH 2 (coins)
A jar has 10 coins — 5¢ nickels and 10¢ dimes — worth 80¢ in total. How many dimes?
dimes
All nickels → 50¢. Surplus = 80 − 50 = 30¢. Each dime upgrade adds 5¢. Dimes = 30 ÷ 5 = 6 dimes.
MINI-QUIZ Q2 · CH 2 (tickets)
A theatre sold 25 tickets at $4 (child) and $7 (adult) for a total of $133. How many adult tickets?
adults
All child → $100. Surplus = $33. Each adult adds $3. Adults = 33 ÷ 3 = 11 adults.
CHAPTER 3.1 · FORMULA

From wand to formula

The wand mechanic is beautiful because each wave is a clear physical move. But once you've done it a few times, you start to see the answer before you wave. That's because the wand is secretly a one-line formula. Let's pull it out.

SETUP
namemeaning
Ntotal count of items (e.g. 8 animals)
Vtotal value (e.g. 22 legs)
bvalue of one BASE item (e.g. 2 legs per chicken)
uvalue of one UPGRADED item (e.g. 4 legs per cow)
xnumber of upgrades (the answer)
DERIVATION

Each item is either base or upgrade. Of the N items, x are upgraded and the rest (N − x) stay base. Total value is the sum of their values:

b · (N − x)   +   u · x  =  V

Distribute the b:

bN − bx + ux  =  V

Factor the x:

bN + x(u − b)  =  V

Solve for x:

x  =  (V − bN) ÷ (u − b)

Read that out loud: "upgrades equal (total value minus all-base value) divided by per-upgrade gap." That's exactly what the wand was doing — measuring the surplus, then dividing by what each wave closes.

CHAPTER 3.2 · FORMULA

Check the formula against every problem

problemNVbu x = (V − bN) ÷ (u − b)
chickens & cows82224 (22 − 16) ÷ 2 = 3 cows
dimes & quarters121951025 (195 − 120) ÷ 15 = 5 quarters
child & adult tickets2014859 (148 − 100) ÷ 4 = 12 adults
beetles & spiders106868 (68 − 60) ÷ 2 = 4 spiders
cars & motorcycles154824 (48 − 30) ÷ 2 = 9 cars
2- & 3-pointers204723 (47 − 40) ÷ 1 = 7 three-pointers

Every row uses the same formula. The wand isn't a separate method — it's the formula walking, slowly, one step at a time. Once your hand has felt the wand make 3 cows, your brain can shortcut straight to x = (V − bN) ÷ (u − b).

And — important — if the result of the formula isn't a whole number, the problem has no solution in whole items. The wand would also tell you this: you'd be left with leftover surplus you couldn't redistribute. The math and the story agree.

★ MINI-QUIZ · FORMULA

Use the formula directly

MINI-QUIZ Q1 · CH 3
A piggy bank has 12 coins (5¢ and 10¢) worth 95¢. Use the formula x = (V − bN) ÷ (u − b) to find the number of dimes.
dimes
N=12, V=95, b=5, u=10. x = (95 − 60) ÷ 5 = 35 ÷ 5 = 7 dimes. (5 nickels.)
MINI-QUIZ Q2 · CH 3
A quiz has 15 questions. Right answers earn +4 points; wrong earn −1. A student scores 35 points after answering all of them. How many were right?
right
N=15, V=35, b=−1 (all wrong), u=+4. All wrong = 15 × (−1) = −15. Surplus = 35 − (−15) = 50. Each upgrade = 4 − (−1) = 5. Right answers = 50 ÷ 5 = 10 right. (5 wrong.)
★ FINAL TEST ★

The Magic Wand · Final Test

For each problem, identify N, V, b, u. Then apply x = (V − bN) ÷ (u − b) — or wave it out in your head. Type the answer and click CHECK.

PROBLEM 1 — ANIMALS
A farm has chickens and pigs. There are 10 animals and 28 legs. How many pigs?
pigs
All chickens → 20 legs. Surplus = 8 legs. Each pig adds 2 legs. Pigs = 8 ÷ 2 = 4 pigs. (6 chickens.)
PROBLEM 2 — COINS
A piggy bank has 15 coins — nickels (5¢) and dimes (10¢) — worth 115¢ in total. How many dimes?
dimes
All nickels → 75¢. Surplus = 115 − 75 = 40¢. Each dime adds 5¢. Dimes = 40 ÷ 5 = 8 dimes. (7 nickels.)
PROBLEM 3 — TICKETS
A theatre sells 30 tickets at $7 (child) or $12 (adult), taking in $275. How many adult tickets?
adult tickets
All child → $210. Surplus = $65. Each adult adds $5. Adults = 65 ÷ 5 = 13 adult tickets.
PROBLEM 4 — BUGS
A jar has 12 bugs. Beetles have 6 legs; spiders have 8 legs. Total legs = 82. How many spiders?
spiders
All beetles → 72 legs. Surplus = 10. Each spider adds 2. Spiders = 10 ÷ 2 = 5 spiders.
PROBLEM 5 — STAMPS
An envelope has 8 stamps. Each stamp is either 30¢ or 50¢. Total postage is 320¢. How many 50¢ stamps?
50¢ stamps
All 30¢ → 240¢. Surplus = 320 − 240 = 80¢. Each upgrade adds 20¢. 50¢ stamps = 80 ÷ 20 = 4 stamps. (4 thirty-cent stamps.)
PROBLEM 6 — VEHICLES
A parking lot has 15 vehicles — cars (4 wheels) and motorcycles (2 wheels). The total number of wheels is 48. How many motorcycles?
motorcycles
Here the BASE is the higher-value item (cars, 4 wheels) because the upgrade direction can be either way. Let's set base = motorcycle (2 wheels). All motorcycles → 30 wheels. Surplus = 18. Each car adds 2. Cars = 18 ÷ 2 = 9. Motorcycles = 15 − 9 = 6 motorcycles.
PROBLEM 7 — QUIZ POINTS
A quiz has 20 questions. Right answers earn +5; wrong earn −2. A student answers all 20 and scores 44 points. How many were right?
right
All wrong → 20 × (−2) = −40 points. To reach 44, you need to add 84 points. Each upgrade (wrong → right) adds 5 − (−2) = 7 points. Right answers = 84 ÷ 7 = 12 right. (8 wrong.)
PROBLEM 8 — STRETCH
A vending machine sells two snacks: chips ($2) and chocolate ($3). In one hour it sold 24 snacks for a total of $62. How many chocolates?
chocolates
All chips → $48. Surplus = 62 − 48 = $14. Each chocolate adds $1. Chocolates = 14 ÷ 1 = 14 chocolates. (10 chips.) Check: 14 × 3 + 10 × 2 = 42 + 20 = 62 ✓.