Brianna started out with a bag of 24 marbles.  She lost four marbles through a hole in the bag.  Then, she gave away twice as many marbles as she had lost through the hole in the bag.  Finally, her dog ate half as many marbles as Brianna had lost through the hole in the bag.  How many marbles did Brianna have remaining? Let's think step by step and output the final answer after "####".
user
Brianna gave away twice as many marbles as she had lost, or a total of 2*4=<<2*4=8>>8 marbles.
Her dog ate half as many marbles as Brianna had lost through the hole in the bag, or 4/2=<<4/2=2>>2 marbles.
If she started with 24 marbles, then the number of marbles remaining is 24-4-8-2=<<24-4-8-2=10>>10 marbles.
#### 10
Brianna started out with a bag of 24 marbles.  She lost four marbles through a hole in the bag.  Then, she gave away twice as many marbles as she had lost through the hole in the bag.  Finally, her dog ate half as many marbles as Brianna had lost through the hole in the bag.  How many marbles did Brianna have remaining?
train