The total pressure exerted is 1 bar. The partial pressure of a component in a mixture is proportional to its mole fraction. Given the weight percentages of H$_$ and He, we can calculate the mole fractions, and hence, the partial pressures of each gas. This gives us 0.625 bar for H$_$, 0.250 bar for He, and 0.125 bar for O$_$.