Answer
$y=3x-2$ or $3x-y-2=0$
Work Step by Step
Slope $3;$ $y$-intercept $-2$
We can simply use the slope-intercept form of the equation of a line, which is $y=mx+b$, where $m$ is the slope and $b$ is the $y$-intercept.
Just substitute the known values into the formula to obtain the equation for the line:
$y=3x-2$ is the equation of slope $3$ and $y$-intercept $-2$, or, in general form:
$3x-y-2=0$