Please see the illustration. If I know the radius of a circle, and I know the length of the secant AB, and that's all I know, how do I calculate X (the red segment, i.e., the distance from the secant to the circumference)?

I'm not looking for a math lesson, just a simple equation I can use to measure that distance. Thanks!