Final answer:
The colors seen in flame tests are produced by the line emission spectra of the metals, which are a result of the arrangement of electrons in the metal. Each metal salt has a uniquely colored flame.
Step-by-step explanation:
The colors seen in flame tests are produced by the line emission spectra of the metals. Each metal salt has a uniquely colored flame. The different colors are a result of the arrangement of electrons in the metal and the wavelengths of light emitted during the combustion process.