
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
Given that John and Mary are seated at either of the longer sides of a rectangular table, with two people on each side and one person on each shorter side, calculate the probability that John and Mary are seated next to each other on one of the longer sides.

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