Emma is planning a small party and needs to buy snacks. She buys 5 packs of cookies, each costing $3.50. She also buys 3 bottles of soda, each costing $2.75. After her purchase, she realizes she needs to return one pack of cookies. How much did Emma spend in total? Let's think step by step and output the final answer within \boxed{}.
user