A farm house shelters 10 animals.some are pigs and some are ducks.altogether there are 36 legs.how many of each animal are there?