An insulated rigid tank is divided into two equal parts by a partition. Initially, one part contains 4 kg of an ideal gas at 800 kPa and 50°C, and the other part is evacuated. The partition is now removed, and the gas expands into the entire tank. Determine the final temperature and pressure in the tank.