A farmhouse has 15 animals . Some are goats and some are ducks . Altogether there are 48 legs . How many of each animal are there?