Add gases to a flask by mass and watch the total pressure split among them. The share each gas takes follows its count of particles, not its mass.
| Gas | moles | X | P (atm) |
|---|
Mole fractions always add to 1. Multiply any mole fraction by the total pressure and you get that gas's own share.