When exposed to air, solutions of calcium hydroxide and barium hydroxide become cloudy. Explain these phenomena

When exposed to air, solutions of calcium hydroxide and barium hydroxide become cloudy. Explain these phenomena, write down the reaction equations.

Hydroxides absorb carbon dioxide, which is present in small quantities in the air.
Ca (OH) 2 + CO2 = CaCO3 + H2O
Ва (ОН) 2 + СO2 = ВаСО3 + Н2O

Remember: The process of learning a person lasts a lifetime. The value of the same knowledge for different people may be different, it is determined by their individual characteristics and needs. Therefore, knowledge is always needed at any age and position.