Plot the two points A and B and join them with a line segment.
Then join A and B passing through a point C, where segments AC and BC are vertical and horizontal.
Triangle ACB will be a right triangle; the length of AB can be found using the Pythagorean Theorem. The lengths of the legs are easy to find, because segments AC and BC are vertical and horizontal.
The Pythagorean Theorem now says
square of length of AC (difference in y values of A and B), plus square of length of BC (difference in x values of A and B) equals square of length of AB
Draw a picture like this (at least in your mind) when you solve the next few problems like this; after that you should be able to see the calculation that is required without drawing the picture:
(AB) squared = (difference in x values)^2 + (difference in y values)^2