
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
Person A and person B each have a certain number of books. If person A gives 10 books to person B, then the total number of books between the two of them will be equal. If person B gives 10 books to person A, then the number of books person A has will be twice the number of books person B has left. Find out how many books person A and person B originally had.

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