A flask contains oxygen, carbon dioxide, and nitrogen gases. The partial pressures of each are 11.4 atm, 5.6 atm, and 8.7 atm respectively. What is the total pressure in the flask in atm?