Dalton's law of partial pressures:
Ptotal=P1+P2+P3+...
Partialpressure=x×Ptotal
where x=molefraction
so total pressure is the sum of partial pressures.
but here same mole fraction of gases are not mentioned so it is not sure whether their mixture in the same vessel at the same temperature will exert a pressure of 300 mm.