The condition for the point to be equidistant from a point and a line is that the distances from the point to the line and the point to the given point are equal. The equation is derived using the distance formula and simplifying gives \( (x - y)^2 - 6(x + y) + 3 = 0 \).