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