I'm going through coordinate geometry chapter and I cannot understand where the formula below comes from.
Let $X$ and $Y$ be distinct point. The line from $O$ to $X-Y$ is parallel to line from $Y$ to $X$. A point on the line from $Y$ to $X$ is of the form:
$$P = Y + a(X - Y) = aX + (1 - a)Y,$$
where $a$ is a real number.
