AD is a diameter of a circle and AB is chord. If AB = 24 cm, AD = 30 cm, the distance of AB from the centre of the circle is :