
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 are some apples and some pears. If 5 apples and 3 pears are packed in each bag, then when the pears are exactly packed up, there are 4 apples left. If 7 apples and 3 pears are packed in each bag, then when the apples are exactly packed up, there are 12 pears left. How many apples and pears are there in total?

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