Since the astronaut would continually breathe oxygen and generate carbon dioxide and water vapor, the spacecraft needed devices to replenish oxygen and to eliminate excess carbon dioxide.
(the astronaut; would continually breathe; oxygen) (the astronaut; generate; carbon dioxide and water vapor) (the spacecraft; needed; devices) (the spacecraft; to eliminate; excess carbon dioxide)
the astronaut the astronaut the spacecraft the spacecraft
would continually breathe generate needed to eliminate
oxygen
carbon dioxide and water vapor
devices
excess carbon dioxide