Construct a square on one side of an equilateral triangle. One on non-adjacent side of the square, construct a regular pentagon, as shown. One a non-adjacent side of the pentagon, construct a hexagon. Continue to construct regular polygons in the same way, until you construct an octagon. How many sides does the resulting polygon have?