Final answer:
Different metals have different flame colors because of the arrangement of electrons in metals, which emit different wavelengths of light. Flame colors can be used to identify elements in unknown substances.
Step-by-step explanation:
Different metals have different flame colors because the arrangement of electrons in metals leads to the emission of different wavelengths of light when the electrons return to their ground states. Each metal salt has a unique flame color. These flame colors can be used to create atomic emission spectra, which can then be used to identify the elements present in an unknown substance.