
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 basket of apples was sold in the following manner: The first time, one-quarter of the total number of apples plus 6 apples were sold. The second time, one-third of the remaining apples plus 4 apples were sold. The third time, one-half of the remaining apples plus 3 apples were sold. In the end, there were 4 apples left. How many apples were originally in the basket?

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