a farmhouse shelters 11 animals. Some are goats and some are ducks. Altogether there are 34 legs. How many of each animal are there?