First law of thermodynamics state that internal energy is a function of state and the increase in internal energy is equal to the sum of the heat supplied to system and work done on system.
$\Delta U \, = \, Q + W$
$\Delta U$ is the increase in internal energy(U) of system,
Q is the heat supplied to the system,
W is the work done on the system.