In how many ways can these students form n groups of three people each if each group is to contain a sophomore, a junior, and a senior?