@arthurh3535 wrote:
It doesn't make any logical sense for SAM to be the benefactor.
SAM: I'll get all the resources needed to fund 6 extragalactic ships, thereby saving Ellen by having myself recruit my creator and finish my creation to finish one of my primary purposes!!!!!
It would be much simpler.
SAM is a sentient being which means that it is concerned about own fate. Milky Way has anti-AI policy, Alec was dishonorably discharged for dabbling in AIs, AIs are destroyed / shot on sight galaxy-wide... It actually makes sense to look for some way to run to a safe haven, and deciding that it would be in another galaxy is absolutely within capabilities of artificial intelligence.
So first: collect funds for further own development; and then second: find a way to survive. If there is some way to aid the nice human that created SAM when working on before-mentioned goals - all the better!