Consider two distinct points and on the side of a triangle . Let and be the feet of the perpendiculars from and to respectively. On the line , place points and such that and . Assume that none of the points coincide with . Additionally, assume that the circumcircles of and intersect at , the midpoint of .
Calculate the ratios of the side lengths: and .