What is the value of increase in internal energy when system does \[8 \mathrm{~J}\] of work on surrounding by supplying \[40 \mathrm{~J}\] of heat to it?