
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
School A and school B each have 3 volunteers participating in a public welfare activity. After the activity, they take a group photo with 3 people in each row. If volunteers from the same school cannot stand next to each other in each row, calculate the number of different ways to arrange them.

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