Learnacy Lab
A metal hands its outer electrons to a non-metal; both become charged ions, and the formula is simply the ratio that makes the charges cancel.