Hello, Adrianna,
The phrase "1 mole of nitrogen per 2 moles of oxygen" means, for this problem, the mystery compound has twice as many oxygens as it has nitrogens. What is inferred, although not stated, is that the compound only has nitrogens and oxygens. Otherwise, we'd need to start with NO2 and try adding other elements to see if any combination results in a molar mass of 138 g/mol. Neither of us has the time, nor inclination, to do that.
NO2 has a molar mass of 46.0 g/mol. We need 138 g/mol. Since we concluded that the mystery compound only has O and N atoms, in the specified ratio of NO2, we just need to divide 138 by the molar mass of the NO2 unit:
(138 g/(mole Mystery Compound))/(46 g/mole NO2 unit) = 3 NO2 units/Mystery Compound
So the mystery compound has the formula (NO2)3, or N3O6.
Bob