To solve the exercise you can first take two points through which the line passes, find the slope of the line and then use the point-slope formula.
So if you take the points
you can find the slope of the line using the formula
Finally, using the point-slope formula, you have
Therefore, the equation of the line in its slope-intercept form is