First line: (2,3) and (1,5).
We have to find the slope

Where,


Then, we use the point-slope formula to find the equation of the first line

The first equation is y = -2x + 7.
Second line: (5, -2) and (-16, 4).
We repeat the process we used above to find the second line.

Where,


Then,

The second equation is y = -2/7x - 4/7.