84.7k views
4 votes
An algebra teacher drove by a farmyard full of chickens and pigs. The teacher happened to notice that there were a total of 100 heads and 270 legs. How many chickens were there? How many pigs were there? (must show work)

User Davir
by
8.2k points

1 Answer

7 votes
Both pigs and chickens have one head :P So:

100=p+c let's solve this for c:

c=100-p we will need this value of c in a moment.

Chickens have 2 legs while pigs have 4 and we are told that there are 270 legs:

2c+4p=270, now using the value of c we found earlier in this we get:

2(100-p)+4p=270

200-2p+4p=270

2p+200=270

2p=70

p=35, and since c=100-p

c=65

So there were 35 pigs and 65 chickens.
User EasyBB
by
7.4k points