Sarah wants to buy notebooks for her new school year. Each notebook costs $3. She has a budget of $50. After purchasing the notebooks, she also needs to buy a pen that costs $2. Calculate how many notebooks Sarah can buy while still being able to afford the pen, and determine how much money she has left after these purchases. Let's think step by step and output the final answer within \boxed{}.
user