Y=mx + b . "You may already be familiar with the "y=mx +b" form (called the slope-intercept form of the equation of a line). It is the same equation, in a different form! The "b" value (called the y-intercept) is where the line crosses the y-axis."
Slope intercept form is y=mx+b where m is the slope and b is the y part of an intercept where x is 0. So the equation for slope (y1-y2)/(x1-x2) with y1 and y2 the y values of 2 points and x1 and x2 those points' x values, so if you would use the points (-2,0) and (0,5) (I used intercepts because they are easier, but you can use any points on the line) you would get (0-5)/(-2-0) and then 5/2 for the slope. plugging in then you get y=5/2*x+5