
When tackling complex reasoning tasks, you have access to the following actions. Use them as needed to progress through your thought process.

[ASSESS]

[ADVANCE]

[VERIFY]

[SIMPLIFY]

[SYNTHESIZE]

[PIVOT]

[OUTPUT]

You should strictly follow the format below:

[ACTION NAME]

# Your action step 1

# Your action step 2

# Your action step 3

...

Next action: [NEXT ACTION NAME]


system
Claire begins with 40 sweets. Amy gives one third of her sweets to Beth, Beth gives one third of all the sweets she now has to Claire, and then Claire gives one third of all the sweets she now has to Amy. Given that all the girls end up having the same number of sweets, determine the number of sweets Beth had originally.

Present the answer in LaTex format: \boxed{Your answer}
user