The foreign investment in Spain in 2017 reached 36.122 million euros