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 lines s and r intersect, we set the them equal to each other, i.e. .