Any two or more governing bodies may jointly establish and conduct such a system of recreation, including recreation centers, parks, swimming pools, playgrounds, and any and all other recreation facilities and activities; and may exercise all the powers given by this article. The respective governing bodies operating such a program or programs jointly may provide by agreement among themselves for all matters connected with such programs and determine what items of cost and expense shall be paid by each.