Okay, let's do the first problem.
We know that the line passes through (2, 5) and has a slope of 4.
y = 4x + b
b=y-intercept
Now we just need to plug x (2) and y (5) in.
5 = 4(2) + b
5 = 8 + b
So... we can solve and see that
5 = 8 + (-3)
So.. the equation for the first problem is...
y=4x+(-3)
Now for the second problem.
We have two points, (-3, 1) and (-2, -1).
We need to find the slope first. Subtract the first equation's x from the second's, and the same for the ys. Then, put y over x.
-1-1=-2
-2-(-3)=1
The slope is -2.
Now, we have an equation of...
y = -2x + b
Let's do the same thing we did for the first problem and plug a point in. It doesn't matter which, so I'll use (-3, 1).
1 = -2 (-3) + b
1 = 6 + b
Again, we can solve for b.
1 = 6 + -5
Your equation is...
y = -2x + (-5)
In conclusion, the equations for the two problems are...
y = 4x + (-3)
and
y = -2x + (-5)