The area of the base is given by

We are given

and


which we can solve with long division:
x^2 -5x+6
2x+1 | 2x^3-9x^2+7x+6
2x^3+ x^2
--------------------------
-10x^2+7x
-10x^2-5x
--------------------
12x+6
12x+6
-----------
0
So

which can be factored as

So the length and width are

and

.