Remember the formula for the distance formula:
[tex]D = \sqrt{(y_2 - y_1)^2 + (x_2 - x_1)^2}[/tex]
where [tex](x_1, y_1)[/tex] and [tex](x_2, y_2)[/tex] are coordinates
Given this formula, we can simply insert our points into the formula:
[tex]D = \sqrt{(2 - 2)^2 + (0 - (-2))^2}[/tex]
[tex]D = \sqrt{(2)^2}[/tex]
[tex]D = 2[/tex]
The distance is 2 units long.