Let be an equiangular convex pentagon. The lines extending its sides form a five-pointed star. Consider a side of the pentagon. Let be the vertex of the star such that triangle is one of the five isosceles triangles whose base is a side of the pentagon. What is the ratio of the length of segment to the length of side ?