In the figure, AB = √ units
x- Coordinate is same for A and D and B and C, so the distance will simply be difference between the y–coordinates. y-Coordinate is same for C and D, so the distance will simply be the difference between x–coordinates.
Therefore, AD = 5 - 0 = 5 units
DC = 5 – 2 = 3 units
BC = 3 – 0 = 3 units
AB = √(5−3))2+(3−5)2
= √9+4
= √13 units