A tank of 10 m3 volume contains an ideal gas (CP=30 J/mol-K) at T=298 K and P=5 bar. If gas from the tank is allowed to flow through a reversible device and exhaust to the atmosphere at P=1 bar, what is the maximum work that could be be obtained if the tank, the device and the surroundings are maintained at 298? Assume the volume of the device is much smaller than the tank volume.