Explanation
(x1 , y1 ) = (0,5)
(x2 , y2 ) = (5, 0)
Using (y − y12 − y1) = (x − x1)/(x2 − x1)
(y−5)/(0−5) = (x−0)/(5−0)
(y−5)/−5 = x/5
5(y - 5) = -5x
y - 5 = -x
x + y = 5
y = -x + 5
(x1 , y1 ) = (0,5)
(x2 , y2 ) = (5, 0)
Using (y − y12 − y1) = (x − x1)/(x2 − x1)
(y−5)/(0−5) = (x−0)/(5−0)
(y−5)/−5 = x/5
5(y - 5) = -5x
y - 5 = -x
x + y = 5
y = -x + 5