A circle has a radius of $15.$ Let $\overline{AB}$ be a chord of the circle, such that $AB = 40$. What is the distance between the chord and the center of the circle?