Two circles of radii 10 cm and 8 cm intersects each other and the length of the common chord is 12 cm, find the distance between their centers.