the lungs perform the function of bringing in oxygen from the air & if the lungs perform a function then the respiratory system performs that function through the lungs
the respiratory system takes in oxygen from the air through the lungs