
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 and B together bought $n$ basketballs, each costing $n$ yuan. When paying, A and B take turns paying 10 yuan each. If the remaining amount is less than 10 yuan, it is B's turn to pay. Once the full amount is paid, to make the amounts they have paid equal, how much should B give to A?

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