Maria baked 48 cookies. She gave half to her neighbor, who then gave a third of his share to his friend. His friend ate 5 cookies. How many cookies does his friend have left? Let's think step by step and output the final answer within \boxed{}.
user