A farm has only chickens and pigs. When the manager of the farm counted the heads of the animals on the farm, the number totaled up to 80. When the number of legs was counted, the number totaled up to 218. How many more chickens than pigs are there on the farm? Note: Each pig has 4 legs and each chicken had 2 legs.  Choose the correct option:
A) 16  B) 18  C) 20  D) 22  E) 24
Let x be the number of chickens.   Then 80-x is the number of pigs.   2x+4(80-x)=218   2x=102   x=51 (chickens)   70-x=29 (pigs)   There are  51-29= 
<gadget id="calculator"> 51-29</gadget>
<output>22</output>
22 more chickens on the farm.   The answer is 22.
<result>D</result>
A farm has only chickens and pigs. When the manager of the farm counted the heads of the animals on the farm, the number totaled up to 80. When the number of legs was counted, the number totaled up to 218. How many more chickens than pigs are there on the farm? Note: Each pig has 4 legs and each chicken had 2 legs.