First find the direction vector of your line, i.e. .

Now, can simply the vector from the origin to the point A (or B, doesn't matter as long as it's on the line). So, our line is:

Now to see where linessandrintersect, we set the them equal to each other, i.e. .