An ideal gas undergoes an expansion from the initial state described by Pi, Vi, T to a final state described by Pf, Vf, T in (a)
a process at the constant external pressure Pf, and (b) in a reversible process. Derive expressions for the largest mass that can be lifted through a height h in the surroundings in these processes.