
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 store received shipments of physics and mathematics textbooks. After selling $50\%$ of the mathematics textbooks and $20\%$ of the physics textbooks, totaling 390 books, the remaining number of mathematics textbooks was three times the number of remaining physics textbooks. How many mathematics and physics textbooks were delivered to the store?

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