The slope-intercept equation of a line is given by y = mx+b where m is the slope and b is the y-intercept.
If given 2 points, you can find the slope of the line containing those two points by calculating the change in the y-values (the "rise") divided by the change in the x-values (the "run").
In this case, the change in y values is 4 - 2 = 2 and the change in x values is 5 - 0 = 5.
The y-intercept, b, is the value of y when x = 0. In general, it can be found by solving the equation y = mx + b for one of the given points, using the point's x and y values and the m calculated in the previous step. For example, using the point (0,2): 2 = m * 0 + b and solve for b.