A cake of 400 grams is divided into eight equal parts. Nathalie eats one-eighth of the cake, and Pierre eats double what Nathalie ate. How much did Pierre eat, in grams? Let's think step by step and output the final answer after "####".
user
Nathalie ate 1/8 * 400g = <<1/8*400=50>>50g of cake.
Pierre eats 2 * 50g = <<2*50=100>>100g of cake.
#### 100
A cake of 400 grams is divided into eight equal parts. Nathalie eats one-eighth of the cake, and Pierre eats double what Nathalie ate. How much did Pierre eat, in grams?
train