I also get the same answer, but I consider the complement as well;
case 1, all three students together
ways=7! * 3!
case 2, two students together
ways=(3C2*2!)(7C2*2!)(6!)=3P2*7P2*6!
[i prefer the ‘choose’ operator as it makes more intuitive sense to me, they’re identical though]
then the...