Inmobiliaria Carso, a holding company for Mexican billionaire Carlos Slim, agreed to buy Bankia SA’s stake in Realia Business SA and make a bid for the whole company as he increases his investment in Spain.

Carso will pay 0.58 euros per share, or 44.5 million euros ($49.3 million), to buy Bankia’s 24.95 percent stake in the Spanish developer and has committed to bid for the whole company at the same price within nine months, the bank said in a filing to regulators in Madrid Wednesday.