There are 2 red, 5 green, 3 blue, and 4 white points on a circle. Find the number of line segments which have vertices of different colors at the given points.