Sarah has a collection of 360 marbles. She decides to give half of her marbles to her friend, John. After giving away the marbles, she buys 150 more marbles. How many marbles does Sarah have now? Let's think step by step and output the final answer within \boxed{}.
user