Here’s my solution
By the tangent-secant theorem,
~~~
Set
therefore
observe
substituting
observe
therefore
substituting
simplifying
therefore, finally
I built a GeoGebra app to illustrate the geometry; in GeoGebra, click on Point P (or use your finger) to move it up and down.
Two Semicircles in GeoGebra