There is black semicircle, which radius is $ R $. The red circle is tangentially inward to the semicircle and to the diameter in its center. The yellow one is tangent externally to the red circle, internally to the semicircle and tangent to the diameter of the semicircle.
My question is :
What is the relationship between $R$ and the radius $r$ of yellow one?
My attempts :
I tried to use similarity of triangles, but always I had the third unknown number and two equations. I am sure that the radius of the red one is $ 0.5R$