We know that the slope-intercept form of the equation of the line is:
[tex]y=mx+b[/tex]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:
[tex]\begin{gathered} (x,y)=(3,0) \\ b=-2 \\ \Rightarrow0=m(3)+(-2)=3m-2 \\ \Rightarrow0=3m-2 \end{gathered}[/tex]now, solving for m we get the following:
[tex]\begin{gathered} 3m-2=0 \\ \Rightarrow3m=2 \\ \Rightarrow m=\frac{2}{3} \end{gathered}[/tex]now that we have that m = 2/3 and b = -2, the equation in slope-intercept form is:
[tex]y=\frac{2}{3}x-2[/tex]