I just answered a similar problem and this one is perhaps a little less onerous.
Let f(x)=-9x+10x2
n=3 means 4 abscissas (values for x)
The abscissa values are -3, -2/3, 5/3 and 4
Calculate the midpoint of each interval.
Then calculate f(x) and each midpoint.
Add the 4 values of f(x) and multiply the sum by 7/3