A substance expands from V1 = 1 ft3 to V2 = 6 ft3 in a constant-pressure process at 100 lbf/in2. The initial and final internal energies are U1 = 40 Btu and U2 = 20 Btu, respectively. Find the direction and magnitude of the energy transfer as heat for the process.