Any two or more public agencies may enter into agreements with each other for joint action pursuant to the provisions of Section 61-3-67. Each agreement shall specify its duration, the proportionate interest which each public agency shall have in the property, facilities, and privileges involved in the joint undertaking, the proportion of costs of operation, etc., to be borne by each public agency, and such other terms as are deemed necessary or required by law. The agreement may also provide for amendments and termination; disposal of all or any of the property, facilities, and privileges jointly owned, prior to or at such time as said property, facilities, and privileges, or any part thereof, cease to be used for the purposes provided in this chapter, or upon termination of the agreement; the distribution of the proceeds received upon any disposal, and of any funds or other property jointly owned and undisposed of; the assumption or payment of any indebtedness arising from the joint undertaking which remains unpaid upon the disposal of all assets or upon a termination of the agreement; and such other provisions as may be necessary or convenient.