Answer:
a=-2
Explanation:
If a line segment has one endpoint on the line y=x, then its coordinates are (b,b). The first endpoint of the segment is at point (a,0). We can find the coordinates of the midpoint of this segment as the average value:

Thus,

From the second equation

Substitute it into the first equation:
