Tony took the train from Walnut City to Almondburg by way of Peanut Village and Pecan Harbor. The train went 6 kilometers from Walnut City to Peanut Village. The train waited for 17 minutes at Peanut Village. It was 10 kilometers from Pecan Harbor to Almondburg. How many kilometers was Tony's train ride?