Question: a farmer has cows and chickens?
Answer: let the farmer have suppose X chickens and Y cows. So there are X+Y= 42 animals with him. Now each chicken has 2 legs and each cow has 4,considering the fact that they're having all their legs in good shape. So total legs are 2X+4Y=114.