
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
Four foreign guests visit a school and need to be accompanied by two security personnel. Six people enter the school gate in sequence. For safety reasons, the two security personnel must be at the beginning and the end. If the guests A and B must be together, calculate the total number of sequences for the six people entering.

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