Acetazolamide is a carbonic anhydrase inhibitor. It works in glaucoma by decreasing the production of aqueous humour (fluid in the eye), thereby lowering the increased eye pressure.
Acetylcysteine is a derivative of the amino acid cysteine and works primarily as a mucolytic agent, meaning it helps to break down thick mucus in the airways, making it easier to cough up.