Liam has a collection of 36 marbles. He buys 24 more marbles and then gives away half of his total collection to his friend. How many marbles does Liam have left after giving away half of his collection? Let's think step by step and output the final answer within \boxed{}.
user