Answer:
The farmer has 45 chickens
Explanation:
Let the number of pigs = p
Let the number of chickens = c
Total animals = 66
p + c = 66 ---------------------(I)
c = 66 - p
A pig has 4 legs. so 'p' number of pigs has p*4 = 4p legs
A chicken has 2 legs. so 'c' number of pigs has c*2 = 2c legs
Total legs = 174
4p + 2c = 174 --------------------(II)
Substitute c = 66 -p in equation (II)
4p + 2(66 - p) = 174
4p + 2*66 - 2*p = 174
4p + 132 - 2p = 174
4p - 2p + 132 = 174 {Combine like terms}
2p + 132 = 174 {Subtract 132 from both sides}
2p = 174 - 132
2p = 42 {Divide both sides by 2}
p = 42/2
p = 21
Plugin p =21 in equation (I)
21 + c = 66
c = 66 -21
c = 45
The farmer has 45 chickens