A rigid tank of 4 m^3 has air at 200 kpa and 33 c. if we know that the tank is connected to a supply line by a valve. And air is flowing in the supply line at 800 kpa and 22c. Then the valve is opened and air is now allowed to enter the tank until the pressure in the tank reaches the line pressure at which point the valve is closed. So if we know by a thermometer that the air temp at the final state is 77 then
1- the amount of heat transfer
2- the mass of air that has entered the tank.