Here's why:
* Potassium is a metal with the symbol K.
* Bromine is a nonmetal with the symbol Br.
Potassium and bromine form an ionic bond, meaning that potassium loses one electron to become a positively charged ion (K+), and bromine gains one electron to become a negatively charged ion (Br-). These ions then attract each other, forming the compound potassium bromide (KBr).