Length of a tangent segment drawn from a point which is at a distance 12.5cm from the centre of a circle is 12cm, find the diameter of the circle.