You can put this solution on YOUR website! You could use the distance formula:
Where: (5, 2) = (x1, y1) and (5, -2) = (x2, y2)
But the two point lie on a vertical line (the x-coordinates for the point are the same), so it is simpler to just subtract the two y-coordinate values.
d = y2 - y1 = -2 - 2 = -4 Take the absolute value: |-4| = 4
The distance is 4.