Hi Guest and Justin,
Thanks for answering Justin, just thought I'd give it a go myself. :)
A debate team consists of 5 freshmen and 4 sophomores. (Everyone is distinguishable.) In how many ways can they stand in line, so at least two of the sophomores are standing next to each other, and at least two of the freshmen are at the ends of the line?
The only way you can have 2 freshman at the end and NOT 2 sophomore together is
S F S F S F S F F
So the number of ways this can happen is 5*4 * 3!*4! = 20*6*24 = 2880
Now all the possible combinations wiith FF at the end but no other restrictions is 5*4 * 7!
So the number of ways that has 2 freshmen at the end AND at least 2 sofomores next to each other is
\(5*4*7! \quad -\quad 5*4 * 3!*4! \\ =5*4*4!(5*6*7-6)\\ =4*5*4!*6*34\\ =97920\)
I suggest you check what we have both done and decide for yourself which answer (if any) is correct.