You can put this solution on YOUR website! case i) suppose the given line has slope m and has y-intercept c , then the equation of line can be written as
y=mx+c
case ii) suppose the line making intercept with a and b on x and y axis respectively ..means intercept with x-axis at (a,0) and with y-axis (0,b), then
the equation of the line can be written as