Circle O is tangent to line AB at A, and angle ABD is 90 degrees. If AB = 12 and CD = 18, find the radius of the circle.