Recall that to calculate the distance between two points (a,b) and (c,d) we use the formula
[tex]\sqrt[]{(c-a)^2+(d-b)^2}[/tex]In our case we have a=-2, b=5, c=4 and d=5. So we get
[tex]\sqrt[]{(4-(-2))^2+(5-5)^2}=\sqrt[]{6^2}=6[/tex]So the distance between both points is 6