
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
Construct a square on one side of an equilateral triangle. Then, on the non-adjacent side of the square, construct a regular pentagon. On the pentagon's non-adjacent side, construct a regular heptagon. Then, on the non-adjacent side of the heptagon, construct a regular hexagon. Lastly, on a non-adjacent side of the hexagon, construct a regular octagon. Each polygon shares exactly one side with the previous polygon. How many sides does the resulting polygon have?
A) 15
B) 16
C) 18
D) 20
E) 22

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