It's like the classic dimes and nickels in the pocket problem. Here you have number of pigs, p, and number of chickens, c.
60 heads corresponds to 60 animals (assuming no mutants): p + c = 60
Assuming pigs have 4 legs and chickens have 2 and that feet are at the ends of legs, the total number of feet is 160 = 4p + 2c
which may now be solved by substitution or elimination.
Take care.