Sarah has a collection of marbles. She decided to give away half of her marbles to her friend, and then she gave away half of the remaining marbles to her neighbor. If Sarah still has 36 marbles left, how many marbles did she start with? Let's think step by step and output the final answer within \boxed{}.
user