Megan has $50 and wants to buy some gifts. She buys a scarf for $12, a book for $8, and a mug for $5. After that, she decides to buy a bracelet for $10 and a box of chocolates for $7. How much money does Megan have left after buying all the gifts? Let's think step by step and output the final answer within \boxed{}.
user