To find the oxidation number of an element, start with assigning group 1 or 2 elements their respective oxidation number.
KNO2 -->
K = +1
O2 = -4 ( -2 for each Oxygen atom)
You have to know the overall charge of the NO2 ion which is -1. So -4 from O2 and X from N must add up to -1. Do the math -4 + X = -1 you get +3
(PO4)-3
how about you try doing this by yourself as a practice and ask if you can't figure it out.