Given two intersecting circles with radius and centers and , the distance between the centers is . A ray starting from the midpoint of the common chord and making an angle with the common chord intersects the circles at points and . Find the distance .