The require line is passing through the points
and
.
We can use the following formula to find the equation of the line passing through a pair of points:
.................equation (1)
Where 'm' is slope of the line which is defined as:

Now, lets say point
is
and point
is
.
We will calculate the slope of the line now:

So, the slope of the required line is 1.
Now, plugging the value of the slope in equation 1, we get:




Therefore, the equation of the line passing through the points
and
is
.
To verify if the equation of line is correct or not, you can plug in any of the points in the equation and compare both the sides:
Lets plug in (-6,-5) in the equation:

Hence, the equation of the line is correct.