Mass. Gen. Laws ch. 106, § 9-608
(a) Application of proceeds, surplus, and deficiency if obligation secured. If a security interest or agricultural lien secures payment or performance of an obligation, the following rules apply:
(1) A secured party shall apply or pay over for application the cash proceeds of collection or enforcement under Section 9–607 in the following order to: