A spaceship traveled N_00 light - year from Earth to Planet X and N_01 light - year from Planet X to Planet Y . Then it traveled N_02 light - year from Planet Y back to Earth . How many light - years did the spaceship travel in all ?