Collinear points are points that all lie in the same line.
Given system is representied in the image above.
AB+BC=AC
Use the given data to write an equation in terms of x:
[tex]\begin{gathered} AB+BC=AC \\ \\ 5+3x+7=5x-2 \end{gathered}[/tex]Use the equation above to solve x:
[tex]\begin{gathered} 12+3x=5x-2 \\ 12-12+3x=5x-2-12 \\ 3x=5x-14 \\ 3x-5x=5x-5x-14 \\ -2x=-14 \\ \frac{-2}{-2}x=\frac{-14}{-2} \\ x=7 \\ \end{gathered}[/tex]