
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
There is a closed sack with apples in it. Three friends tried to lift the sack and guess how many fruits were inside. The first guessed there were 18 apples, the second guessed 21, and the third guessed 22. When they opened the sack, they found out that one of them was off by 2, another by 3, and another by 6. How many apples were in the sack? Find all possible answers.

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