To find the distance of a line that has two points that have different values for x and y, you have to use the formula

distance=Untitled1.png