Let the oxidation number of the underlined element be x. Use Na = K = +1, Ca = +2, Al = +3, H = +1 (−1 in metal hydrides), O = −2 (−1 in peroxides); the sum of oxidation numbers equals the charge on the species (zero for a neutral compound).
(a) NaH2PO4: (+1)+2(+1)+x+4(−2)=0⇒x=+5
(b) NaHSO4: (+1)+(+1)+x+4(−2)=0⇒x=+6
(c) H4P2O7: 4(+1)+2x+7(−2)=0⇒2x=10⇒x=+5
(d) K2MnO4: 2(+1)+x+4(−2)=0⇒x=+6
(e) CaO2 is calcium peroxide (it contains the O22− ion): (+2)+2x=0⇒x=−1
(f) NaBH4 contains the BH4− ion, in which hydrogen is bonded to the less electronegative boron and behaves as hydride, so H = −1: (+1)+x+4(−1)=0⇒x=+3
(g) H2S2O7: 2(+1)+2x+7(−2)=0⇒2x=12⇒x=+6
(h) In potash alum the water molecules are neutral and contribute zero, and the formula has K+, Al3+ and two SO42− ions: (+1)+(+3)+2[x+4(−2)]=0⇒2x−12=0⇒x=+6