At the aquarium, posters of sharks cost $2 and posters of jellyfish cost $6. Mr. Benson spent $64 to buy 12 posters. How many of each type of poster did Mr. Benson buy?