A farmer saw some chickens and pigs in a field. He counted 30 heads and 84 legs. Determine exactly how many chickens and pigs
he saw?