First, notice that the line intersects the y-axis at the point (0,5), and that it also passes through the point (2,4). Then, we can use the equation for the slope given two points:
in this case, we get the following:
now that we have that the slope is m = -1/2 and that the y-intercept is 5 (since the intersection is the point (0,5)), then, the equation of the line in slope intercept form is: