$Workdone,W=Q\times V...\left(1\right)$
$Current,I=\frac{Q}{t}...\left(2\right)$
$\frac{V}{I}=R$
$V=I\times R...\left(3\right)$
$Now,puttingQ=I\times tandV=I\times Rinequation\left(1\right),weget:$
$Workdone,W={I}^{2}\times R\times t$
$Heatproduced,H={I}^{2}\times R\times t$
Start your learning Journey !