Help!
Farmer Doug has some pigs and chickens.
One day he counted 24 legs 7 heads in the barnyard.
How many of each animal did Farmer Doug Count? __

With Explanation, please!