Any county having within its limits a city of the first class may, together with the city, jointly acquire land for, construct, equip, furnish, maintain, and operate a joint courthouse and city hall building.