Assuming you want the equation in slope intercept form, you first need to use slope formula to find the slope.
![(y_(2)-y_(1))/(x_(2)-x_(1))](https://img.qammunity.org/2019/formulas/mathematics/middle-school/h6yio8o6nmr3xtqzjfa9sn654ojtjh40xn.png)
Plug in the coordinates that you have, (3,-1) and (4,7), for the x and y values respectively.
![(-1-7)/(3-4)](https://img.qammunity.org/2019/formulas/mathematics/college/gcw0e7t10b2lf86xpn91rkm8ymszqlg000.png)
Which reduces to 8/1=8.
The slope of your equation is 8.
Slope intercept form is: y=mx+b. m is your slope and b is your y-intercept, x and y stay unchanged.
Plug the slope in:
y=8x+b.
Now, you can plug one of the sets of coordinates into the x and y of the equation to find b. I'm using (3,-1).
-1=8(3)+b
-1=24+b
Subtract 24 from both sides.
-25=b
Now plug this into the equation!
y=8x-25 is your final equation.
I hope this helps :)