A school dance committee is to consist of 2 freshmen, 3 sophomores, 4 juniors, and 5 seniors. If 5 freshmen, 7 sophomores, 8 juniors, and 9 seniors are eligible to be on the committee, in how many ways can the committee be chosen?