We know that the slope-intercept form of the equation of the line is:

since the y-intercept is -2, then we have that b = -2.
To find the slope, we can use the x-intercept doing the substitution of the point (3,0) on the previous equation to get the following:

now, solving for m we get the following:

now that we have that m = 2/3 and b = -2, the equation in slope-intercept form is:
