In the diagram, the segment x units long is tangent to the circle. Solve for x.