Call the next chests as $X_1,X_2$. With $0.6$$0.4$ probability, our new variable is $X_1+X_2$ and with $0.4$$0.6$ probability, it is $1$. So,
$$\begin{align}E[X^2]&=0.4\times E[(X_1+X_2)^2]+0.6\times1^2\\&=0.4\times E[X_1^2+X_2^2+2X_1X_2]+0.6\\&=0.4\times(2E[X^2]+2E[X]^2)+0.6\\&=0.8\times E[X^2]+7.8\rightarrow E[X^2]=39\rightarrow\operatorname{var}(X)=30\end{align}$$