[tex]\bf \underset{\textit{2+12=14, half of 14, 7 units from 12}}{\stackrel{P}{-2}\rule[0.35em]{2em}{0.25pt}0\rule[0.35em]{5em}{0.25pt}\stackrel{\stackrel{midpoint}{\downarrow }}{5}\rule[0.35em]{9em}{0.25pt}\stackrel{B}{12}}[/tex]
from -2 to 0 is 2 units, from 0 to 12 is 12 units, 2+12 = 14 units total for the segment.