Such agreement must provide for the disposition of any property acquired as the result of such joint or cooperative exercise of powers, and the return of any surplus moneys in proportion to contributions of the several contracting parties after the purpose of the agreement has been completed.
N.D.C.C. § 54-40-05