In a certain city, a small bakery sells cupcakes at $2.50 each and cookies at $1.75 each.
The bakery has a special deal where if a customer buys 6 cupcakes, they receive 2 additional cupcakes for free.
If a customer purchases 6 cupcakes under this deal and also buys 4 cookies, how much does the customer spend in total?