
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
How many different ways can six people stand in a row if the following conditions are met?
(1) Person A and Person B must be adjacent;
(2) Person A and Person B are not adjacent;
(3) There are exactly two people between Person A and Person B;
(4) Person A is not at the left end, and Person B is not at the right end.

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