
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
A class has 4 boys, 2 girls, and 1 teacher. They want to take a group photo standing in a row. Determine how many different arrangements are possible under the following conditions:  
(1) The teacher stands in the middle.  
(2) The girls do not stand next to each other.  
(3) The teacher is flanked by girls on both sides.

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