The reversible isothermal ideal-gas work is ; the heat would not be fixed by endpoints alone without the process assumption.
Full derivation: solution.