Answer:
y = -x +6
Step-by-step explanation:
The 2-point form of the equation for a line through points (x1, y1) and (x2, y2) is ...
y = (y2 -y1)/(x2 -x1)(x -x1) +y1
For your given points, this is ...
y = (1-4)/(5-2)(x -2) +4 . . . . with given points filled in
y = -1(x -2) +4 . . . . . . . . . . . simplify a bit
y = -x + 6 . . . . . . . . . . . . . . simplify to slope-intercept form