Oxygen passes into the blood and carbon dioxide passes out of the blood through the walls of the air sacs.