Regular Fit

Sam Shah posted an intriguing picture of a 42-gon, heptagon and an equilateral triangle fitting together at a point. That made me wonder about how to make a sketch that let you find out if given two regular polygons there was a third to fit.[br][br]Turns out, this is a pretty interesting application for rational functions, too.
Regular Fit

Information: Regular Fit