how do I know which picture goes with the correct equation

If B is between A and C, but B is not midpoint, then the graph would be
The equation would be
[tex]AC=AB+BC[/tex]On the other hand, if B is between A and C, and B is a midpoint, the graph would be
The equation would be
[tex]AB=BC[/tex]