Find the distance of a perpendicular from the centre of a circle to the chord if the diameter of the circle is 30 cm and its chord is 24 cm.