A bakery sells three types of pastries: croissants, muffins, and scones. The prices for each are $2, $3, and $4, respectively. If a customer buys 4 croissants, 3 muffins, and 2 scones, what is the total cost? Additionally, if the customer spends 10 minutes choosing the croissants, 5 minutes choosing the muffins, and 8 minutes choosing the scones, how much total time did the customer spend shopping? Let's think step by step and output the final answer within \boxed{}.
user