(b)
Number of friends to be invited=6
Let A, B be the friends who are not to attend the party together. Either none of A, B or one of A, B attend the party
$\therefore$ Number of ways of inviting friends
$= \ ^{10 - 2}C_{6} \times \ ^{2}C_{0} + \ ^{10 - 2}C_{5} \times \ ^{2}C_{1}$
$= 28 \times 1 + 56 \times 2 = 140$