
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
The cafeteria has a total of 351 bags of rice and flour. If the number of rice bags is increased by 20 and the number of flour bags is decreased by 50, then the number of rice bags will be 1 more than 3 times the number of flour bags. How many bags of rice and flour were there originally?

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