Solve for y1 d=y_2-y_1