Take a look at material exchnage at the capillaries. In diagram A, this is showing capillaries at the body cells--look at the oxygen leave (RBC going from bright red to maroon) and carbon dioxide enter the bloodstream. At diagram B, this is material exchange at the alveoli. Look at oxygen enter the RBCs from the lungs and carbon dioxide leave.