So
\begin{eqnarray} \\ \cos \angle OXC + \cos \angle
OXD &=& 0 \\ \frac{r^2 + (R + r - x)^2 - (R + x)^2}{2r(R +
r - x)} + \frac{R^2 + (R + r - x)^2 - (r + x)^2}{2R(R + r - x)}
&=& 0 \\ r^2R + R(R + r - x)^2 - R(R + x)^2 + rR^2 + r(R +
r - x)^2 - r(r + x)^2 &=& 0 \\ 4R^2r +4Rr^2 &=&
4xR^2 + 4xr^2 + 4Rrx \\ R^2r + Rr^2 &=& x(R^2 + rR + r^2)
\\ x &=& \frac{Rr(R + r)}{R^2 + Rr + r^2}
\end{eqnarray}
There is a pleasing symmetry about this formula which gives
the radius of the small circle in terms of the radii of the two
smaller semicircles. An excellent solution, well done Sue!