
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 and 3 girls, making a total of 6 students standing in a row.

(1) If the three girls must stand together, find the total number of different arrangements.
(2) If boy A cannot stand at either end, and among the 3 girls, exactly two girls stand together, find the number of different arrangements.

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