Two insulated tanks both contain air and are connected by a line with a closed valve. The volume of tank A is 2.0 m^3 and the volume of tank B is 5.0 m^3. Initially, tank A contains air at 500 K and 600 kPa and tank B contains air at 900 K and 200 kPa. The valve is opened and the gases in each tank mix and eventually the system reaches equilibrium at temperature T2 and pressure p2. Assume that the volume of the connecting line is negligible compared to the volume in the tanks, and that the connecting line is well-insulated also.
a) Calculate the entropy generation (kJ/K) for the tank mixing process.