A sales person travels from city A to city B and then to C. From city C the sales person travels directly back to city A. Write the lengths of the legs of the trip in order from least to greatest and solve for X