If B is to be the midpoint, we must use the midpoint formula to determine the values of x and y.
Using points A and C, we substitute to get
Now, we know
Therefore, x = 2.
We also know that
Therefore, y = 15.
You can substitute these values back into points B and C to verify the slopes of AB, BC and AC are the same.