in the figure above, what is the equation of the line that passes the y-axis at (0,5) and passes the x-axis at (5,0)?

in the figure above, what is the equation of the line that passes the y-axis at (0,5) and passes the x-axis at (5,0)?

A.

y = x + 5

B.

y = -x + 5

C.

y = x - 5

D.

y = -x - 5

Correct answer is B

(x1, y1) = (0,5)

(x2, y2) = (5, 0)

Using \(\frac{y - y_1}{y_2 - y_1} = \frac{x - x_1}{x_2 - x_1}\)

\(\frac{y - 5}{0 - 5} = \frac{x - 0}{5 - 0}\)

\(\frac{y - 5}{-5} = \frac{x}{5}\)

5(y - 5) = -5x

y - 5 = -x

x + y = 5

y = -x + 5