
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
On two bookshelves, there are mathematics books, equally distributed on each shelf. If 5 books are moved from the first shelf to the second shelf, then the second shelf will have twice as many books as the first shelf. How many books are there on both shelves in total?

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