A discharge tube holds a mixture of two elements. Slide the spectroscope level with the tube, read the lines, and name both elements.
Drag the spectroscope up or down, or focus it and use the arrow keys.
The electrons in an atom can only have certain energies. When an electron drops from a higher energy level to a lower one, the atom gives out a photon with exactly the energy difference, so only certain wavelengths appear. These lines are a fingerprint of the element. A mixture shows the lines of both elements.
Hydrogen and helium follow real measured lines. For this game, the other lines are simplified, and a few lines from different elements fall very close together (within about 3 nm). No two answers show the same set of lines, so the puzzle can always be solved if you count the lines carefully.
Calcium and magnesium are metals, so in a real discharge lamp they would be vapours.
Learn more in the Bohr model lesson and the Stellar spectroscopy lesson.