A bakery sells cupcakes in boxes of 6 and 12. A box of 6 cupcakes costs $8, and a box of 12 cupcakes costs $14. A customer needs exactly 30 cupcakes for a party. What is the least amount of money the customer can spend on these cupcakes? Let's think step by step and output the final answer within \boxed{}.
user