Respuesta :

Remark

Let the pigs = p

Let the chickens = c

Givens

30 heads is another way of saying that there were 30 creatures in the barnyard. In addition each chicken has 2 legs and each pig has 4

c + p = 30

2C + 4P = 100       (2) Divide (2) by 2

C + 2P = 50           (3)  Subtract (1) from (3)

C + P    = 30

       P  = 20

So there were 20 pigs.