
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
Masha and the bear ate a basket of raspberries and 40 pies, starting and finishing at the same time. Initially, Masha ate raspberries while the bear ate pies, and then (at some moment) they switched. The bear ate both raspberries and pies 3 times faster than Masha. How many pies did Masha eat if they ate an equal amount of raspberries?

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