Emily has 6 marbles. Megan gives Emily double the number she has. Emily then gives Megan back half of her new total plus 1. How many marbles does Emily have now? Let's think step by step and output the final answer after "####".
user
Megan gives Emily 6*2=<<6*2=12>>12 marbles.
Emily then has 6+12=<<6+12=18>>18 marbles.
Emily gives Megan 18/2+1=<<18/2+1=10>>10 marbles.
Emily has 18-10=<<18-10=8>>8 marbles now.
#### 8
Emily has 6 marbles. Megan gives Emily double the number she has. Emily then gives Megan back half of her new total plus 1. How many marbles does Emily have now?
train