After visiting her grandfather's farm. Maria also stopped at her uncle Pol' farm. Uncle Pol has only ducks and cows. He can't remember how many of each he has, but he doesn't need to remember because he knows he has 27 animals and that 22 is also his age. He also knows that the animals have a total of 56 legs, because 56 is also his father's age. Assuming that each animal has all legs intact and no more, how many each animal does Uncle Pol have?