A farmer has pigs and ducks in a barn. Counting together, there are 20 heads and 56 legs. How many pigs are in the barn?
8 pigs
If all 20 animals were ducks, there would be 40 legs. Each pig adds 2 extra legs. 56 total legs - 40 base legs = 16 extra legs. 16 / 2 = 8 pigs (and 12 ducks).
About this riddle
Math riddles hide a calculation inside a short story. Pull out the numbers, work out what is being asked, and watch for a trick such as a unit change.
Difficulty: Medium. More like this: Math riddles with answers or try Target 24 for a different kind of puzzle.
More math riddles
Eli has 5 apples and finds 8 more. How many apples does Eli have now?
Zoe gets 7 rulers on Monday and 7 rulers on Tuesday, then gives away 6. How many rulers are left?
A basket contains apples and oranges in a 4:3 ratio. If 6 more apples are added, the ratio becomes 2:1. How many total fruits were in the basket originally?
I am a two-digit perfect square. The sum of my digits is also a perfect square, and my ones digit is twice my tens digit. What number am I?
I am a four-digit number. My thousands digit is 3, and my units digit is 8. The middle two digits are equal to each other, and the sum of all my digits is 20. What number am I?
There are 16 apples in a box and 8 are taken out. How many apples are left?

