We are given a line passes through the point (-2,5). The slope should have been given as well. Assuming that the slope is 2, we can determine the values of x and y for the points A and B.
The formula for the slope is
m = (y2 - y1)/(x2 - x1)
The slope between (-2,5) and A(x,3) is
2 = (3 - 5) / (x - (-2))
Solve for x
Use the same approach for the points (-2,5) and B(-2,y) to solve for y.