A 10 kg mass undergoes a process. In this process it transfers 2 kJ of work to its surroundings; it increases in elevation by 50 m, and increases its velocity from 15 m/s to 30 m/s. Its specific internal energy decreases by 5 kJ/kg. For this process the average acceleration of gravity is 9.7 m/s². Determine the heat transferred in this process, considering the mass to be the system.