Answer
$W_r=13J$
Work Step by Step
Let the energy dissipated as thermal energy in the battery because or internal resistance be $W_r$
We can find $W_r$ as follows
$W_r=W_\epsilon-W_R$
We plug in the known values to obtain:
$W_r=80-67=13J$
$W_r=13J$