the combination of wavelengths emitted by an ion depends on its charge and electron arrangement
no two ions have the same charge and the same electron arrangement
different ions emit different wavelengths of light
so each ion produces a different pattern of wavelengths, and has a different line spectrum
the intensity of the spectrum indicates the concentration of that ion in solution- line spectra can identify ions in a solution and calculate their concentration