Chicken & Cow Counting Problems
The farmer's problem
★ 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.
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.
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.
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.
Try the wand idea on your own
One quick problem to make sure the wand mechanic clicks. Type your answer and click CHECK.
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
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.
The cinema kiosk
Variant B · The cinema kiosk
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.
Beetles and spiders
Variant C · Beetles and spiders in a jar
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.
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
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.
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
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.
Two of your own
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.
| name | meaning |
|---|---|
N | total count of items (e.g. 8 animals) |
V | total value (e.g. 22 legs) |
b | value of one BASE item (e.g. 2 legs per chicken) |
u | value of one UPGRADED item (e.g. 4 legs per cow) |
x | number of upgrades (the answer) |
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:
Distribute the b:
Factor the x:
Solve for x:
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.
Check the formula against every problem
| problem | N | V | b | u | x = (V − bN) ÷ (u − b) |
|---|---|---|---|---|---|
| chickens & cows | 8 | 22 | 2 | 4 | (22 − 16) ÷ 2 = 3 cows |
| dimes & quarters | 12 | 195 | 10 | 25 | (195 − 120) ÷ 15 = 5 quarters |
| child & adult tickets | 20 | 148 | 5 | 9 | (148 − 100) ÷ 4 = 12 adults |
| beetles & spiders | 10 | 68 | 6 | 8 | (68 − 60) ÷ 2 = 4 spiders |
| cars & motorcycles | 15 | 48 | 2 | 4 | (48 − 30) ÷ 2 = 9 cars |
| 2- & 3-pointers | 20 | 47 | 2 | 3 | (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.
Use the formula directly
x = (V − bN) ÷ (u − b) to find the number of dimes.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.