on his farm ol macdonald has 10 animals consisting of pigs and chickens . if there are 17 pairs of legs how many pigs and how many chickens are there ?