C2-W1:Optimization using gradients - Analytical method

In this video(referred to in the title of this post), why is the cost taken as the difference between y-axis coordinates?

Please provide a screen capture image that shows the time mark.

Hey Mosh, thanks for the reply. But, I have figured it out myself. It’s just some intuition that helped me clarify my confusion. Thanks again.!