
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

Two individuals, A and B, each use the same amount of money to buy the same type of candy. A buys candy in metal boxes, while B buys candy in paper boxes. Both try to buy as many boxes as possible. As a result, A buys 4 fewer boxes than B and has 6 yuan left, while B uses all the money he brought. If A used three times his original amount of money to buy candy in metal boxes, he would buy 31 more boxes than B and still have 6 yuan left. What is the price per box of the candy in metal boxes and the price per box of the candy in paper boxes?

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