The general form of the equation of a straight line in the slope-intercept form is given to be:

where m is the slope of the line and b is the intercept on the y-axis, that is the y-value when x = 0.
To calculate the slope, we can use the formula:

From the question provided, we have the points:

Using these values, we can calculate the slope to be:

Hence, we have the equation of the line to be:

We currently do not have a value for b. We can find b, however, by substituting a point into the equation. Then we can solve for b. Using the second point, we have:

Therefore, the equation of the line is:
