First sketch the graph and points. Then, make a right-angled triangle with the points and use Pythagoras' Theorem.