The slope intercept form of a line can be written as:

where m is the slope and b is the y-intercept.
We have two points of the line: (-1,1) and (0,3).
Knowing that for x=0, the value of y=3 tells us that the y-intercept b is b=3:

Using the other point and replacing the values of x and y in the equation we can calculate the value of the slope m:

Then, with m=2 and b=3, the equation becomes:

Answer: y=2x+3