Question must be wrong then. You've given the equation for the spontaneous (albeit slow if uncatalysed) decomposition of hydrogen peroxide, which is interesting as it's a disproportionation reaction, when H2O2 is both oxidised and reduced simultaneously. The answers given must be wrong. O2 has oxidation state zero for oxygen, while H2O has oxidation state -2 and H2O2 has oxidation state -1
In weird cases like these, don't just go by rules. Draw out the structure, which is H-O-O-H
Each hydrogen is bonded to an oxygen => oxidation state convention says each hydrogen has 'lost' an electron as oxygen is more electronegative and has oxidation state +1. Then, each oxygen has only gained one electron each from the hydrogen as the O-O bond is completely symmetric => oxygen gains one electron, oxidation state -1. No need for 'dodgy' application of rules