The equation of the line that passes thought the a point (x1,y1) and has slope m is

In our case we have two point but we don't know the slope yet. The slope is given by

Then, in our problem, the slope is

Once we have the slope and the point (we can use whichever we like) we can write the equation of the line; using the point (4,-1) we have:
