the formula of the distance is
[tex]d=\sqrt[]{(x2-x1)^2+(y2+y1)^2}[/tex]where (x1,y1) and (x2,y2) are the points
so replacing
[tex]\begin{gathered} d=\sqrt[]{(10-2)^2+(6-21)^2} \\ \\ d=\sqrt[]{8^2+(-15)^2} \\ \\ d=\sqrt[]{64+225} \\ \\ d=\sqrt[]{289}=17 \end{gathered}[/tex]the distance is 17 units