You go shopping and spend $264 on shirts and shorts. You purchase a total of 9 items. Each shirt costs $24 and each pair of shorts cost $32. How many of each did you buy?