A container has a volume of 18L and holds 9mol of gas. If the container is compressed such that its new volume is 8L, how many moles of gas must be released from the container to maintain a constant temperature and pressure?