You can put this solution on YOUR website! Hmm...45 seems like a very long distance. If you plot the points and use the grid, you'll quickly find that 45 is way too big...
Here's how you'd find the distance:
Start with the distance formula.
Plug in , , , and .
Subtract from to get .
Subtract from to get .
Square to get .
Square to get .
Add to to get .
Take the square root of to get .
So our answer is
So the distance between the two points (-2,1) and (6,7) is 10 units.