to make money is your best answer choice.
During the time, the railroads turned out big profits, as it was the fastest means to travel by. Depending on the amount of rails placed, the companies could make larger profits. That is why the two of them wanted to build a transcontinental railroad.
hope this helps