If P ( a/2,4) is the midpoint of the line segment joining the points A(-6,5) and B(-2,3), then the value of a is .