From the given question
There are given that the point of x-coordinates (6, and -2)
Now,
From the distance formula:
So,
We can put the value of x-coordinate, which is given in the question, into the above formula to find the distance.
For example:
Let y- coordinate is (5, 1)
Then,
From the above formula, put all values from both point (6, -2) and (5, 1)
So,
Hence, the value of the distance is shown below: