What determines the valence of a metal element?

What determines the valence of a metal element?

Determined by the number of extra-nuclear electrons. The number of extra-nuclear electrons that combine together determines the valence of the element. The valence is set to indicate the number of atoms that combine together. When you learn the valence, you should know the valence of the elements in the compound.

After sulfur dioxide is introduced into acidic potassium permanganate, the solution is discolored.

5SO2+2(MnO4-)+2H2O=5(SO42-)+2(Mn2+)+4(H+)