
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
Dunce has 27 candies in two pockets. If he transfers from the right pocket to the left pocket the same number of candies as already in the left pocket, there will be 3 more candies in the right pocket than in the left pocket. How many candies were in each pocket initially?

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