
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
The older brother and the younger brother each bought several apples. The older brother said to the younger brother, "If I give you one apple, we will have the same number of apples." The younger brother thought for a moment and said to the older brother, "If I give you one apple, the number of apples you have will be twice as much as mine." How many apples did they buy in total?

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