There are n points in a plane of which p points are collinear. How many lines can be formed from these points?