The slope-intercept form:

m - slope
b - y-intercept
The formula of a slope:

We have:
.
Substitute:

Therefore we have 
.
Substitute the coordinates of the point (1, 1) to the equation:

 add 3 to both sides

Answer: y = -3x + 4
We have:

Substitute:

Therefore we have 
.
Substitute the coordinates of the point (4, 1) to the equation:

 subtract 3 from both sides

Answer: 
