how do the respiratory and circulatory system work with each other ?