How would I calculate a vector X where it "goes" the same directions to 2 positions?

This is just vector intersection. There are tons of resources online on this.