
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 school cafeteria line, there are 16 students alternating between boys and girls (starting with a boy, followed by a girl, then a boy, and so on). Any boy, followed immediately by a girl, can swap places with her. After some time, all the girls end up at the beginning of the line and all the boys are at the end. How many swaps were made?

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