Find the value of x, if the distance between the points (x,-1) and (3,-2) is x+5 .