Find the equation of a line with slope −1 and intercept of 5 units on the positive direction of y-axis
x + y = 5
Here, m=−1, and intercept c=5
We know that the equation of a straight line whose slope is m and which makes an intercept c on the y-axis is y=mx+c
y=−1x+5
y=−x+5
x+y=5