Answer
$25$ $J$
Work Step by Step
In Step 1, 35 J of E is added to the system, as 45 joules of heat is added and 10 J is used in expansion. Since the overall process takes the gas back to the initial state, step 2 must release 35 J total, and since 60 J of heat is removed, 25 J = 60-35 J is added through compression.