These two cylinders are put on top. Once we heat them with an amount of $\Delta T$, the gravitational potential energy of $X$ and $Y$ are increasing by $\Delta E_X$ and $\Delta E_Y$ . Find the ratio $\dfrac{\Delta E_X}{\Delta E_Y}$
I tried to find their potential energy
$$U_X = mgh \tag{1}$$
and
$$U_Y = mg(2h) = 2mgh \tag {2}$$
However, there should be something I'm missing.
Regards!
