Exactly 1.0 mole of oxygen and 7.0 moles of nitrogen gas are in a container. The total gas pressure is 5.7 atm. What is the partial pressure of nitrogen in atm?

I'm not sure how to go about setting up the problem. Any help is appreciated!

2 answers

mol fraction = X
XO2 = nO2/total mols
XN2 = nN2/total mols

Then pO2 = XO2*Ptotal
and pN2 = XN2*Ptotal
Got it, thanks!