If there were no three points collinear. We should have 10C2 lines but since 7 points are collinear we must subtract 7C2 lines and add the one corresponding to the line of collinearity of the seven points.
Thus, the required number of straight lines .
= 10C2 - 7C2 + 1 = 25