The charge (in C) flowing through a resistance R varies with time (in s) as Q=2t–8t2. The total heat produced in the resistance is (for 0≤t≤18 s)