
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 supermarket has some oranges and apples, and both types of fruit are to be packed into bags. If each bag contains 5 oranges and 7 apples, after packing all the apples, there will be 1 orange left. If each bag contains 9 oranges and 7 apples, after packing all the oranges, there will be 21 apples left. How many oranges and apples are there in total?

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