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