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