Barack walks 2 kilometers south and then x kilometers east. ​ ​He ends 5 kilometers away from his starting position. ​ ​ Find x rounded to the nearest tenth of a kilometer. ​