A farmer has 8 cows and 10 chickens. The farmer counts all the cow and chicken legs. How many legs are there all together?

well, 4 per cow and 2 per chicken.