The slope-intercept form of a line is
So let's take your first pair of points:
So the form for the line is:
We need to find b. So plug either point into this formula. I'll choose the first one:
Thus your line equation is
You can verify that the other point also satisfies this equation.
You do the other problem.