
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 4 girls standing in a row. Find the number of arrangements that satisfy the following conditions:

(1) No two girls are adjacent. How many arrangements are there?

(2) Boys A and B are adjacent. How many arrangements are there? (Express the result as a number)

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