A line written in slope-intercept form is given by
Where m represents the slope and b the y-intercept.
Rewritting our equation, we have
Comparing to the slope-intercept form, we know that the slope of this line is the coefficient of x, in this case, 2.