The only way to do this one is by long division which I can't figure out how to show here. There are some great examples online if you google long division with polynomials.
The answer is 3x^2+3x+3 with a remainder of 5x+6 who's is usually shown as (5x+6)/2x^2 +2x+4 which was the divisor g(x).