Oxygen typically has an oxidation state of -2, and there are 7 oxygen atoms in

, which has an overall charge of -2. This means each Cr must have an oxidation state of +6 in order for the overall compound to have a charge of -2 (

). For C in

, hydrogen typically has an oxidation state of +1 while hydroxide has a charge of -1. Thus, each C must have an oxidation state of -2 for the entire compound to have a net charge of 0. To figure out the oxidation state of C in

, you once again use the oxidation states of hydrogen and oxygen to determine that the oxidation state of each C must be -1 for the overall compound to have a charge of 0.