To determine the distance between two points you can use the following formula:
[tex]d=\sqrt{(x_1-x_2)^2+(y_2-y_1)^2}.[/tex]Substituting the given values in the above formula, you get:
[tex]d=\sqrt{(2-2)^2+(-7-1)^2}.[/tex]Simplifying you get:
[tex]d=\sqrt{0+64}=8.[/tex]