Use the properties of enthalpy as a state function (version…