
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
There are 3 boys, 3 girls, and 1 teacher taking a photo together. The teacher must be in the middle, and those adjacent to the teacher cannot be boys or girls at the same time. How many possible arrangements are there?

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