Metal atoms tend to give away valence electrons when they bond with nonmetal atoms. What type of bond will form between the metal and nonmetal atoms and why does this bond form?