Answer:
Along with solving the question, I'll try to clear the concepts involved.
Distance: Total path actually traversed by the object.
Distance is a scalar quantity. Hence, No need to consider the direction.
Here the object…
First travelled 30 m towards East & then travelled 40 m towards North.
Distance = 30 m + 40 m = 70 m