How do substances like CO2 and water move in and out of the cell?

How do substances like CO2 and water move in and out of the cell?

CO2 moves in and out of the cells by the process of diffusion which involves the movement of molecules from a region of higher concentration to a region of lower concentration across the cell membrane.

Water moves in and out of the cells by osmosis which involves the movement of water through a semi-permeable membrane from a solution of lower concentration of solutes to higher concentration of solutes to which the membrane is relatively impermeable.