Donna had 2 * 1 = <<2*1=2>>2 pieces of cake left.

Before her snack, there were 2 + 1 = <<2+1=3>>3 pieces left.

Those 3 pieces were half the leftovers, so she had 3 * 2 = <<3*2=6>>6 pieces before sharing with her brothers.

Those 6 pieces were half the party leftovers, so the cake was 2 * 6 = <<6*2=12>>12 pieces before the party.

# Answer

12
<|im_start|>system
You are a helpful assistant.<|im_end|>
<|im_start|>user
Donna made a cake to take to a party where the guests ate half the cake. The day after the party, she shared half the leftovers with her brothers. The following day, she ate one piece as a midnight snack. Twice as many pieces as her snack were left. How many pieces was the cake to begin with?
Please reason step by step, and put your final answer within \boxed{{}}.<|im_end|>
<|im_start|>assistant

user
12
Donna made a cake to take to a party where the guests ate half the cake. The day after the party, she shared half the leftovers with her brothers. The following day, she ate one piece as a midnight snack. Twice as many pieces as her snack were left. How many pieces was the cake to begin with?
train