The circles and are externally tangent at point . Their common external tangent touches the circles and at points and , respectively. A line passes through point , intersects circle again at point , and intersects circle at points and (point is located between and ). The common tangent to the circles passing through point intersects lines and at points and , respectively (point lies between points and ). It is known that , . Find the length of segment and the radii of both circles.