
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
A and B bought the same number of sheets of stationery. A put 1 sheet of stationery into each envelope and had 40 sheets of stationery left after using all the envelopes. B put 3 sheets of stationery into each envelope and had 40 envelopes left after using all the sheets of stationery. How many sheets of stationery did they each buy?

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