(i) The substance 'X' used for whitewashing is quick lime (calcium oxide). Its formula is CaO.
(ii) When quick lime is mixed with water, the following reaction takes place:
CaO(s) + H2O(l) ------> Ca(OH)2(aq) + Heat
(Quick lime calcium oxide) water calcium hydroxide(slaked lime)