A pizza restaurant sells whole pizzas and offers an option to cut each pizza into 8 equal slices. Each whole pizza costs $12. A customer wants to buy enough pizza to serve 24 people, with each person eating 3 slices. How much will the customer spend on the pizzas? Let's think step by step and output the final answer within \boxed{}.
user