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