Given: PB is a line segment on a number line.
The endpoints of the line segment are -2 and 12.
We have to determine the coordinate of its midpoint.
The coordinate of its midpoint is calculated by adding the coordinates of the line segment and then dividing it by 2.
Therefore, Coordinates of Midpoint =
![(-2+12)/(2)](https://img.qammunity.org/2019/formulas/mathematics/high-school/ms9u76v1u3ehkngniv98yfsed965q08nx3.png)
=
![(10)/(2)](https://img.qammunity.org/2019/formulas/mathematics/middle-school/qjy1q8titnilm2odkv2xji8ja66kgpwg74.png)
= 5
Hence, the coordinate of the midpoint of the line segment PB is 5.