In triangle , angle equals , and angle is acute. A line perpendicular to side is drawn, cutting off triangle from triangle (point lies between vertices and ). The areas of triangles and are in the ratio . Segment is half the height of triangle . Find the ratio .