John has a card Collection with 24 basketball cards, 12 football cards and 8 baseball cards,. He wants to arrange the cards in equal piles, with only one type of card in each pile. How many can he put in each pile?