Here oxygen moves into the blood and carbon dioxide moves out. Intercostal muscles These muscles run between the ribs and form the chest wall. They contract and relax with the diaphragm when a ...