I must assume that your graph is that of a straight line, and that the end points of the line are P and B, and (finally) that T is between P and B. If these assumptions are correct, then the length of the line segment PB connecting points P and B is 15 + 10, or 25.