Two regular pentagons and a regular decagon, all with the same side length, can completely surround a point, as shown.
An equilateral triangle, another equilateral triangle, two squares, and a regular $n$-gon, all with the same side length, also completely surround a point. Find $n$.