Problem:

Two moles of oxygen and one mole of nitrogen are contained in a cylinder with a volume of 10.0L at 298K. What is the total pressure? What is the partial pressure of oxygen?

Solve for total pressure:

Partial pressure of oxygen: