(a) What does a definite integral mean? Surely you know it's the area under the curve. You know each square is in area so you can figure out what the area under the curve is.
(b) Average value of a function over an interval [a,b] is given by:
You are given a and b and you know found the definite integral from (a).