Calculating moles of Hydrogen gas in multiple gas container
Using pv = nrt$$1atm\times(0.5L) = (total moles)(.08206\frac{atm\cdot L}{mol\cdot k})(293K) \\ \text{total moles} = .02079mol $$ There are 3 total moles of gas with 2 of those being hydrogen and 1 being oxygen. This means 66% of the total moles is hydrogen and 33% is oxygen. Soooooo 66% times .02079 is the amount of hydrogen moles and 33% times .02079 is the amount of oxygen. TADA!