Answer
$3x-5+\frac{5}{x+2}$
Work Step by Step
Using long division, divide $x+2$ into $3x^2+x-5$
$x$ goes into $3x^2$, $3x$ times.
($3x^2+x$)-($3x^2+6x$)
$-5x$ is left over. $x$ goes into $-5x$, $-5$ times.
($-5x-5$)-($-5x-10$)$=5$
Your remainder goes over the divisor.
$3x-5+\frac{5}{x+2}$