In Sam’s pet corner, there are puppies and parrots, the total of 15 heads and 50 feet. How many parrots and how many puppies?