Step-by-step explanation:
Hello!
Let's solve this!
The flame test is performed on metals to, from its emission, know what metal we are talking about. When we heat a metal ion, an electron becomes excited and then returns to its original place. When it returns to its place it emits photons according to its emission spectrum.
Each metal has its spectrum, so they will always give a characteristic color.
This color is seen in the color change of the flame.
Some examples are: the sodium ion is yellow, potassium is lilac, calcium is brick red.