Coordinates of A and B is
A = (6, 2)
B = (-4, 2)
How to find the coordinates
We know that the coordinate of the midpoint is (1, 2)and the slope is zero.
Hence we can say that the line is a horizontal line, and the y coordinate will be equal
So, the y-coordinate of A and B is 2, we solve for the x-coordinate
The length of the line is 10 units. so each side will be 5 units.
We can then say that
A = (1 + 5, 2) = 6, 2)
B = (1 - 5, 2) = (-4, 2)