
Also, from graphs given
$S_{2} > S_{1} \Rightarrow \frac{Q}{T_{2}} > \frac{Q}{T_{1}}$
where, $S$ is entropy, $Q$ is heat and $T$ is the temperature.
or $\quad T_{1} < T_{2}$
Hence, temperature of system $1$ is less than system $2$. So, heat flows from system $2$ to system $1$ .
Hence, $U_{1}$ increases and $U_{2}$ decreases.

(Take $R$ = $8.3\ J/mol-K$ and $ln\ 2$ = $0.69$)