which of the following systems functions as a means to rid the body of carbon dioxide?