
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
In a class, 3 male students and 3 female students stand in a row for a photo. The requirement is that any two adjacent students must be of different genders, and male student A and female student B must be adjacent, but neither A nor B can stand at the ends of the row. Find the total number of different arrangements of the students.

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