In this problem, use the general expressions for left and right sums,

left-hand sum=f(t0)Δt+f(t1)Δt+⋯+f(tn−1)Δt
and
right-hand sum=f(t1)Δt+f(t2)Δt+⋯+f(tn)Δt,
and the following table:

t 0 3 6 9 12
f(t) 24 21 17 16 12
A. If we use n=4 subdivisions, fill in the values:
Δt=

B. Find the left and right sums using n=4
left sum =
right sum =

C. If we use n=2 subdivisions, fill in the values:
Δt=

D. Find the left and right sums using n=2
left sum =
right sum =

you have the formula -- what's the trouble?

From here on, it's just Algebra I