
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 box of apples is to be divided among several children. If each child receives 5 apples, there will be 12 apples left over. If each child receives 8 apples, the last child will receive some apples but less than 8. Determine the number of children and the total number of apples in the box.

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