
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
You have 5 different books, among which are 2 mathematics books. If these 5 books are arranged in a row such that the mathematics books are not adjacent and also not placed at both ends simultaneously, there are _______ ways. If these 5 books are distributed to 3 students, with each student receiving at least 1 book, there are _______ different distribution methods.

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