A closed gas system undergoes two sequential processes. (1) At constant volume, 500J of heat is added to the gas. (2) The gas then expands at constant pressure, performing 300J of work on the surroundings. The overall change in internal energy for the two-step sequence is measured to be +250J. Calculate the amount of heat transferred during the constant-pressure expansion.