After the explanation, I understood how it is done but how do we know what oxidizes to what or, what reduces to what in these kinds of questions