Mary bought 12 oranges from the store. For each orange she ate, she decided to squeeze juice from twice the number of remaining oranges. How many oranges did Mary eat if she squeezed juice from all of them? Let's think step by step and output the final answer within \boxed{}.
user