Based on the conditions, you would have two points on either side of the line, just at the same distance from A[x1,y1].
Code
%%// PointA Location
x1=1;y1=1;
%%// Demo values
d1 = 5; %%// distance
m = 4/3; %%// slope
%%// Calculations
f1 = d1/sqrt(m.^2+1);
x = [ x1+f1 ; x1-f1]
y = m*(x-x1)+y1
Output
x =
4
-2
y =
5
-3