Any two or more cities of the second class or villages, lying adjacent to each other, may consolidate and become one city or village, as the case may be, and under the name and with all the powers, obligations, and duties of the city or village whose name shall be assumed and adopted in the proceedings provided in sections 17-402 and 17-403.