
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 4 male students and 4 female students, making a total of 8 students standing in a row. Calculate the number of arrangements for the following situations:

(1) Male student A and female student B stand next to each other;

(2) The order of male student A and female student B is fixed;

(3) If female student A does not stand at either end, and among the 4 male students, exactly two of them stand next to each other.

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