Nitrogen gas at T=298.15 K and P=10 bar is contained in a supply lined connected to a closed tank containing a liquid-vapor nitrogen mixture at the same pressure and at lower temperature. At the beginning, the tank contains 10 mol of liquid nitrogen, which occupies 10% of its total volume. The tank is refrigerated and, as a result, the nitrogen flows from the supply line into the tank until liquid nitrogen occupies 90% of the total tank volume at P=10 bar. Assuming that nitrogen is an ideal gas, find the total amount of heat extracted from the tank.
* Antoine equation parameters for nitrogen:
A=10.84654 B=330.16 C=252.823