If the point P (m , 3) lies on the line segment joining the points A(−25,6) and B (2, 8), find the value of m.