Two glass containers, initially at the same pressure and temperature, are filled with ideal gas. If the valve connecting the containers is opened, the pressure becomes equal. Find the final pressure.