I think what I would do here, is instead of working out 3 separate sums, I would use the interval [a,b], to derive a formula for any interval. Then we can plug in the intervals we are given.
We will have:
Thus, we find:
Now it's simply a matter of using the given values to answer parts a), b) and c).