I would give you the answers but then that wouldn't help you, so sorry in advance.
We already know that the slope of a line is rise over run
or y1-y2/x1-x2
But that only gives us the slope
What if we want to have an equation that shows what points it passes through as well
Well, that's basically what slope-intercept is.
We can use this simple formula (simple because there's much more complicated formulas)
y=mx+b where y equals the y coordinate, x equals the x coordinate, m equals the slope, and b is the y-intercept.
As an example, I'll do the first one for you.
y=mx+b
Plug in what we know
y=1x+4
You can simplify this down to
y=x+4, since 1 is identity property.
Then, you make up what x is, and your like "x is 0", if x=0, then y=4, so it'll work like that, but I'm pretty sure you don't have to show that.
And as a treat, I'll do the second one as an example:
y=mx+b
Plug in what we know
y=2x+(-2)
Simplify
y=2x-2
Same thing here, you make up what x is, and your like "x is 0", if x=0, then y=4, so it'll work like that, but I'm pretty sure you don't have to show that.
Hope this helps, let me know if you have any questions,