(1+x)(1−x)10(1+x+x2)9
=(1+x)(1−x)(1−x)9(1+x+x2)9
=(1−x2)[(1−x)(1+x+x2)]9
=(1−x2)(1−x3)9
So, Coefficient of x18 in (1+x)(1−x)10(1+x+x2)9
= Coefficient of x18 in (1−x2)(1−x3)9
=Coefficient of x18 in (1−x2)[C09+C19(−x3)+C2(−x3)2+…9]
=C69(−1)6=C39=1.2.39.8.7=84