Need a little help with these two questions:

1. Find x so that the distance between (-3,2) and (x,1) is the square root of 5.

Next I had a triangle, needed to find x. Used the pythagorean theorem and got this:

x^2 + 81 = x^2 + 6x + 9

Not sure what to do there, but I know it's basic algebra.

Any help is appreciated.