The compound that absorbs CO2 is:

KOH

NaOH

Mg(OH)2

Ca(OH)2