NB: please Dont rely on this solution until it is verified by Amit Sir. I have requested him to have a look at this.
Let X be the number coming on the face of die.
Let T be the number of heads when the coin is tossed x times.
so f(t|x) = xCt (.5)^x t=0,1, ... x
E(T|X=x) = .5x , Var(T|X=x)= .25x
E[T] = E[ E(T|X=x) ] = (1/6) [ 1/2 + 2/2 + 3/2 .... 6/2] = 21/12
Var[T]= Var[ E(T|X) ] + E[ Var[T|X] ]
Var[ E(T|X) ] = E[ ( E[T|X])^2 ] - [E[ E(T|X) ] ]^2
E[ ( E[T|X])^2 ] = 1/6[(1/2)^2 + (2/2)^2 .... (6/2)^2] = 91/24
[E[ E(T|X) ] ]^2 = [E[T] ]^2 = (21/12) ^2 =441/144
Var[ E(T|X) ] = 91/24 - 441/144 =105/144
E[ Var[T|X] ] = 1/6[ Var[T|X=1] + ... Var[T|X=6]
=1/6 [1/4 + 2/4 ...6/4] = 21/24
Var[T]=105/144 + 21/24 = 231/144= 77/48
---
"You don't have to believe in God, but you should believe in The Book." -Paul Erdős