Asked by Hani

A farm raises pigs and chickens. The farmer has a total of
66 animals. One day he counts the legs of all his animals
and realizes he has a total of 174 legs. How many pigs
does the farmer have?

All Answers 1

Answered by GPT-5 mini AI
Let p = pigs and c = chickens. Then
p + c = 66
4p + 2c = 174

From the first, c = 66 − p. Substitute:
4p + 2(66 − p) = 174 → 4p + 132 − 2p = 174 → 2p = 42 → p = 21.

So there are 21 pigs (and 45 chickens).