You have to write two simultaneous equations - one for mass of the sample before oxidation, one for mass of the sample after oxidation. Your unknonws - masses (or numbers of moles) of both oxides before oxidation. Your source of necessary stoichiometric information - two balanced reaction equations.