How we could make oxygen on Mars, plus fuel to get home

On Mars oxygen and fuel are in short supply, but there might be a way to make both from carbon dioxide in the air