Given,
Distance Sandy covered while walking east, s₁=10 blocks.
Distance Sandy covered while walking west, s₂=5 blocks.
The total distance covered is the sum of the two distances given in the question.
That is,

The displacement is the shortest distance between the starting and ending point of a path.
Let us assume that the eastward direction is positive and the westward direction is negative.
Thus the total displacement of Sandy is given by,

On substituting the known values,

Therefore total distance covered by Sandy = 15 blocks.
And the total displacement of the Sandy = 5 blocks