
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
The full score for this question is 10 points.  
How many different ways can six people stand in a row if they meet the following requirements?  
(1) Person A cannot stand at either end;  
(2) Person A and Person B must stand next to each other;  
(3) Person A and Person B cannot stand next to each other;  
(4) Person A and Person B stand in order from left to right (they do not have to be adjacent);  
(5) Person A and Person B stand at the two ends.

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