Chickens and Rabbits

  • Easy
  • Mathematical puzzles
  • Tests: Two unknowns from two totals

The puzzle

A yard holds only chickens and rabbits. Counting heads gives 35; counting legs gives 94.

How many of each animal is there?

Stuck?

One at a time, smallest first. Open only as many as you need — the whole point of the puzzle is the part you work out yourself.

Hint 1

Suppose every animal were a chicken. How many legs would there be, and how many are missing?

Hint 2

Each rabbit you swap in for a chicken adds two legs.

Show the answer Hide the answer

23 chickens and 12 rabbits.

How to get there

If all 35 animals were chickens there would be 70 legs. There are 94, so 24 legs are unaccounted for.

Turning a chicken into a rabbit adds 2 legs, so 24/2 = 12 rabbits. That leaves 35 - 12 = 23 chickens.

Checking: 23 x 2 + 12 x 4 = 46 + 48 = 94 legs, and 23 + 12 = 35 heads. The algebraic version is c + r = 35 and 2c + 4r = 94; halving the second gives c + 2r = 47, and subtracting the first gives r = 12 directly.

The technique worth keeping

Assume all of one kind, measure the shortfall, and divide by what each swap is worth. It is simultaneous equations done in your head, and it generalises to any two-item mixture problem.