Answer
$y=x$
Work Step by Step
First, we find the slope as follows
$$
m=\frac{y_2-y_1}{x_2-x_1}=\frac{-2-5}{-2-5}=\frac{-7}{-7}=1
.$$
The point-slope form of a line is given as:
$$y-y_1=m(x-x_1)$$
We plug in the given point and slope and solve for $y$:
$$y-5=1 (x-5)\Longrightarrow y=x
.$$