Foreign direct investment reached a record $ 10 billion in 2008 , but dropped to $ 7.2 billion in 2009 , before beginning to recover in 2010 , notably in the oil sector .