Total number of points = 18
Out of 18 numbers, 5 are collinear and we get a straight line by joining any two points.
∴ Total number of straight line formed by joining 2 points out of 18 points = 18C2
Number of straight lines formed by joining 2 points out of 5 points = 5C2
But 5 points are collinear and we get only one line when they are joined pairwise.
So, the required number of straight lines are
Hence, the total number of straight lines = 144