Section 24. The assessors of a town owing debts incurred to obtain funds for subscriptions for the capital stock and securities of a railroad corporation shall annually assess, in addition to the other amounts required by law, an amount sufficient to pay the excess of such interest payable by such town over any income received from such stock or securities.