The general reaction for metal X is:
The general reaction for a nonmetal Y is:
This is the main chemical difference between a metal and a nonmetal: the reaction of their oxide with water.
METAL ------> oxide BASIC in water.
NONMETAL -----> oxide ACIDIC in water.
This is the problem when nonmetals such as sulfur and nitrogen are oxidized; these oxides react with water in the atmosphere to generate acid rain.