Alice, Andrew, and six other students are to be divided into two teams of four people. How many ways are there to form the teams so that Alice and Andrew are on opposite teams?