Magnetism, or more specifically electromagnetic repulsion
Hey there!
When two or more substances combine, they create one or more new substances, which sometimes have different molecular structures from the original substances, meaning they absorb and radiate light in different ways, leading to a color change.
Hope this helps! :)
Answer:
Potassium (K) = (2,8,8,1)
This is the element that has three(3) filled energy level and one valence electron