For $(a)$ NaF, we have Sodium (Na) which is a metal and Fluorine (F) which is a non-metal. Sodium loses an electron to become positively charged and Fluorine gains an electron to become negatively charged.
For $(b)$ KBr, we have Potassium (K) which is a metal
Show more…