Answer: The below graph shows Martin's motion.
Explanation:
let x represents the time(in seconds) and y represents the displacement in x seconds.
According to the question,
At first he walked away from the school for 30 second .
Thus, we will get a line having positive slope.
After that, he turned around and walked to his friend for 20 second.
Thus, we will get a line having negative slope.
Now he wait 40 second in his friend's house.
Thus, after that we get a line that is parallel to x-axis.
Now, He again goes towards his school for 20 seconds,
Thus, we get a line having positive slope.
Therefore, Below graph shows his motion,