please solve the problem and identify what was wrong in solving the problem

Using the distance formula:
[tex]d=\sqrt[]{(x2-x1)^2+(y2-y1)^2}[/tex]Therefore:
[tex]\begin{gathered} d=\sqrt[]{(-7-(-1))^2+(-6-2)^2} \\ d=\sqrt[]{(-7+1)^2+(-6-2)^2} \\ d=\sqrt[]{(-6)^2+(-8)^2} \\ d=\sqrt[]{36+64} \\ d=\sqrt[]{100} \\ d=10 \end{gathered}[/tex]Answer:
10