Rewrite the function as an equation.
Use the slope-intercept form to find the slope and y-intercept.
The slope-intercept form is y=mx+b, where m is the slope and b is the y-intercept.
Find the values of m and b using the form y=mx+b.
The slope of the line is the value of m, and the y-intercept is the value of b.