Any school district in this state which has within its boundaries, or is contiguous to, a city of the second class may, together with such city, jointly acquire land for, erect, equip, furnish, maintain, and operate a joint municipal and recreation building or joint recreational and athletic field to be used jointly by such school district and city.