The light which atoms give off is made up of specific wavelengths, called lines; observed by a spectroscope, the lines…