Complex sentence: Paulding was Adjutant General of New York and, from 1824 to 1826, mayor of New York City.
Split into simpler sentences: Paulding was Adjutant General of New York. From 1824 to 1826 he was Mayor of New York City.