Complex sentence: Twain made a substantial amount of money through his writing, but he lost a great deal through investments, mostly in new inventions and technology, particularly the Paige typesetting machine.
Split into simpler sentences: Twain made a substantial amount of money through his writing, but he lost a great deal through investments. He invested mostly in new inventions and technology, particularly in the Paige typesetting machine.