a) If the groups contain respectively a1,a2,…,a10 points, the number of triangles is
N=(3a1)+(3a2)+⋯+(3a10).
We claim this number is minimal when
a1=a2=⋯=a10=10,
the minimum value being 10(310). Indeed, if there exists a group having m≥11 points, there will exist another group having n≤9 points. Moving a point from the first group into the second, the number of triangles decreases. This last statement follows from the inequality
(3m)+(3n)>(3m−1)+(3n+1),
readily verified by direct computation.
b) Make each group of 10 points each, subdivided into two subgroups of 5 points each. Since the positions of the points are irrelevant, we may suppose all these subgroups of 5 points make up convex pentagons. Colour their sides with colour c1, their diagonals with colour c2, and the segments joining points from different subgroups with colour c3. It is easy to see no monochromatic triangle appears.