find x such that the point (x,5) is 5 units from (-4,2)

Use your distance between two points formula:

√( (x+4)^2 + (5-2)^2 ) = 5

hint: square both sides, then expand the left side
arrange to form a quadratic equation.
You will get two answers for x