The heart and lungs work together to make sure the body has the oxygen-rich blood it needs to function properly.