The primary function of the alveoli is to exchange oxygen and carbon dioxide. Specifically, they facilitate the exchange of oxygen from the air into the blood and the removal of carbon dioxide from the blood into the air. So, the correct statement would be:
Exchange oxygen in the air for carbon dioxide in the blood.
The other options listed do not accurately describe the function of the alveoli.