y = mx + b
m is the slope
b is the y-intercept
First find the slope
\(slope = \frac{y_2-y_1}{x_2-x_1} = \frac{-1+2}{5-0}= \frac{1}{5}\)
So far we have: y = 1/5x + b
Now we need to find b
y = 1/5x + b
Plug in (0,-2)
-2 = 1/5(0) + b
-2 = b
So the final equation is \(\boxed{y=\frac{1}{5}x-2}\)