Notwithstanding any other provision of law, any transit district may negotiate the purchase from, or the sale to, any federal, state, or local public agency of any real or personal property upon terms and conditions agreed to by the district and the public agency.