To solve this problem, consider the following picture
By the tangent secant segment theorem we have the following equation
Note that in our case, we have a=x, b=3 and c=9. So if we replace this values in the equation, we have
so, applying the square root on both sides, we get
Since x is a distance, it should be strictly positive, so we have that