The charge following through a resistance R varies with time t as Q= at-bt2, where a and b are positive constants. The total heat produced in R is
(a) a3R3b (b) a3R2b
(c) a3Rb (d) a3R6b