The problem statement clearly says that the only equipment available are the 2 tanks and the turbine. We must come as close as possible to reversible within this constraint.Right. But if we are looking for the maximum theoretical work, we should consider all processes reversible. Of course this is never achievable, but this would establish an upper limit. So it seems to me.