Find the slope using the given points:

Substitute either point for x and y into or

Solve for b: , so

Substitute the values of m and b into .