The point-slope form of writing a line equation is given by the following generic expression:

where a is the slope, and x0 and y0 is any of the points that the line passes through.
Because we have two points of the given line, we are able to calculate the slope as follows:

Now, by substituting it, and one of the points in the generic expression, we are able to find the following expression for the line:

now, to write it in the slope-intercept form, we need to isolate Y and simplify the equation, as follows:
