Geometrically, the set of all points equidistant from two fixed points is the perpendicular bisector of the segment joining those points.
You can verify your linear equation by checking if it passes through the midpoint of \(AB\), which is \((3, 5)\).
Indeed, \(3 - 5 + 2 = 0\), which is correct!