First we need to find the slope:
Slope formula=

Plug in your given values from the coordinate
Slope =

When we have 2 "-"'s together they turn into a + sign so we add.
Slope =

Slope =

Simplify (in this case divide) the slope:
Slope =

slope-intercept form is:
y=mx+b
Where m=slope
b=y-intercept
So far we have:
y=2x+b
To find b all we have to do is pick any given coordinate and plug it in:
I chose (3,1)
so we plug that in the equation
1=6+b
Now solve for b:
1=6+b
subtract 6 from both sides
b=-5
Final answer:
y=2x-5 (D)