Displacement is not the same as distance. Total distance would be the sum of two distances: 40 + 12 = 52 miles. However, displacement is the shortest distance from the initial and final position. Take a look at the attached image. Displacement is the difference of two distances: D = 40 - 12 = 28 miles