You are correct! You applied Dalton's law of partial pressures that states that the total pressure of a mixture of gases is equal to the sum of the pressures that each gas would exert if it were present alone so...PV = (noxygen + nnitrogen)RT.