For every 3 horses a farmer has, there are 5 chickens. If there are a total of 72 animals, how many of each animal are there?