A farmhouse shelters 10 animals. Some are pigs and some are ducks. Altogether there are 36
legs. How many of each animal are there?