You have the mean of y and x. y = b + ax, so b = (mean y) - a(mean x), using your data.
On during LOBF, make sure that it goes through mean of y and mean of x : (mean x, mean y) and the y-intercept. This will form a straight line between two points so no need to worry about the gradient as it will be represented there.