Pressure of oxygen should be considered at temperature and volume of the mixture and this pressure will be the partial pressure (say p atm) of O2. Thus
P1 = p atm
V1 = 5 litres
T1 = 600K
P2 = 5atm
V2 = 1 litre
T2 = 300K
\(\frac{p \times 5}{600} = \frac{5\times 1}{300}\)
\(p = \frac{5\times 600}{5 \times 300}\)
\(= 2 \ atm\)