Equation of a line can be given by :
y = mx + b
Let's find the slope of the line (m) :




now let's solve for b :

Let's plug the values of x and y from the coordinates of a point .



now, let's put the value of m (slope) and b (y-intercept) in the equation.


That's All, I hope it helped ya