Answer
See the answer below.
Work Step by Step
This is the photoelectric effect: energy transferred to the electrons of atoms in the salt cause them to become excited and release photons when returning to the ground state. The yellow color indicates a presence of sodium atoms.