solve x^2+y^2 = r1^2 and (x-d)^2+y^2 = r2^2 for x and y