The $ 9bn financing was split into three tranches of $ 3bn : one for setting up the mining operation and two for nationwide infrastructure investments , including more than 3,500km of roads and nearly 3,000km of railways .