Water is heated in a closed pot on top of a stove while being stirred by a paddle wheel. During the process, 30 kJ of heat is transferred to the water, and 5 kJ of heat is lost to the surrounding air. The work done amounts to 500 J. determine the final energy of the system if its initial internal energy was 10 kJ.