Ms. Lopez drew a line on the chalkboard that measured 40 cm. She erased 17 7/8 cm. How long was the remaining line?​