(b)
Total number of points are $m + n + k$, the triangles formed by these points $= \ ^{m + n + k}C_{3}\$
Joining of three points on the same line gives no triangle, the number of such triangles is $\ ^{m}C_{3} + \ ^{n}C_{3} + \ ^{k}C_{3}$
$\therefore$ Required number of triangles
$=^{m + n + k}C_{3} -^{m}C_{3} -^{n}C_{3} -^{k}C_{3}$