Two points are said to be collinear if their slopes are equal
⇒ Slope of AB =Slope of BC
We have,
Slope between two points=(y2−y1x2−x1)