The internal energy of a fluid is initially 18kJ. The internal energy of the fluid is increased to 76kJ by a non-flow thermodynamic process during which 50J of work was done. Determine the magnitude and direction of the heat energy transfer across the system during the process.