As given by the question
There are given that the two points:

Now,
To find the equation of line, first, find the slope of line:
Then,
From the formula of slope:

Then,

Now,
From the formula of slope-intercept form

Then, put the value of m, y, and x to find the value of b
So

Then,
Put the value of b and m into the general form of the equation

Hence, the equation of a line is shown below:
