A barnyard is full of chickens and pigs, and the total number of chicken feet and pig feet is .

(a) If there are chickens and pigs in the barnyard, write an equation relating the number of chickens and pigs to the total number of feet in the barnyard.

help (equations)

(b) If there are chickens, how many pigs are there?

Number of pigs = help (numbers)

You can earn partial credit on this problem.