Jonathan has $50. He buys a book for $12 and a toy for $15. After that, he gives $8 to his friend. How much money does Jonathan have left? Let's think step by step and output the final answer within \boxed{}.
user