By definition, Colinear points are those points (three or more) that lie on the same line.
Based on the the line shown in the picture, you can notice that:

You know that:

So you can substitute them into the first equation:

Having this equation, you can solve for "x":

Knowing the value of "x", substitute it into the equation of AB and then evaluate, in order to find its length.
So, the length fo AB is:
