Let distance be #d#. Then:
#color(white)(xx)d^2=(Deltax)^2+(Deltay)^2color(white)(xxxxxxxxxxx)# (Pythagorous' Theorem)
#=>sqrt(d^2)=sqrt((color(red)(x_2-x_1))^2+(color(red)(y_2-y_1))^2)#
#=>d=sqrt((color(red)10-color(red)5)^2+(color(red)2-color(red)12)^2)#
#color(white)(xxx)=sqrt(color(red)5^2+color(red)10^2)#
#color(white)(xxx)=sqrt(color(red)25+color(red)100)#
#color(white)(xxx)=5sqrt5#