Mass. Gen. Laws ch. 78, § 19A
The state treasurer shall annually, on or before July first, pay from monies appropriated from the Local Aid Fund for that purpose, to each city or town certified by the board of library commissioners to have met certain minimum standards of free public library service established by said board, an amount to be used for the free public library or libraries of said city or town, to be determined as follows:—
(4) in addition to the amounts specified in paragraphs (1), (2) and (3), to each city or town whose library is designated a major nonresident lender by said board, an amount for the purpose of offsetting the costs of extending said service to nonresidents. Said amount shall be determined by said board by allocating the sum appropriated for this purpose according to criteria and formulae developed by said board in consultation with the regional public library systems established under section nineteen C.
No city or town shall receive any money under this section in any year when the appropriation of said city or town for free public library services is below an amount equal to the average of its appropriation for free public library service for the three years immediately preceding, increased by two and one-half per cent of said average. Said board may, upon petition of a community, waive aforesaid requirement upon demonstration of fiscal hardship. Said waiver may only be granted by said board in a given fiscal year to not more than ten cities and towns in the commonwealth.
For a joint public library, the board may approve, at the request of the cities or towns served by the joint public library, a single appropriation requirement in determining amounts under this section. The amount shall be calculated by aggregating the appropriations of the cities or towns administering the library. Upon petition by all of the cities or towns served by a joint public library, the board may waive the single appropriation requirement upon a demonstration of fiscal hardship. A joint public library shall be an undertaking of 2 or more cities or towns to provide public library service to their residents through a single administrative entity.