The commissioner shall ascertain and determine the amount due to each city and town under section eighteen A, notify the treasurer of each city and town of the amount determined to be due to such city or town, or that no amount is due, as the case may be, and certify the amount as determined to the state treasurer, who shall thereupon pay the same in accordance with the provisions of said sections.
Mass. Gen. Laws ch. 58, § 25