This is six calculations....3 for slopes between points and three for distances...I'll do ONE of each and you try the rest
points 2,3 and 4,4 slope = (y1-y2)/(x1-x2) = (3-4)/(2-4) = 1/2
distance d2 = (x1-x2)^2 + (y1-y2)2 = (2-4)^2 + (3-4)^2 = 4+1 = 5 d^2 =5 d = sqrt 5
Now you do the others slope between points 2 and 3 and 3 and 1 and distances.....