The current is:
\[
I = \frac{dq}{dt} = a - 2bt
\]
The power dissipated is:
\[
P = I^2 R = (a - 2bt)^2 R
\]
The total heat produced is:
\[
H = \int P \, dt = \int (a - 2bt)^2 R \, dt = \frac{a^3 R}{6b}
\]
Thus, the total heat produced is \( \frac{a^3 R}{6b} \).