The document discusses the process of inhalation and exhalation. During inhalation, the diaphragm contracts and moves down while muscles attached to the ribs pull the ribs outward. This increases the chest cavity size and allows the lungs to expand and inhale oxygen-rich air. During exhalation, the diaphragm and rib muscles relax, decreasing the chest cavity size and causing the lungs to contract and exhale carbon dioxide-rich air out of the body.