Govt takes $24.9bn loan in three years