A metal nitrate 'A' on heating gives yellowish brown colored metal oxide along with brown gas 'B' and a colorless gas 'C'. Aqueous solution of 'A' on reaction with potassium iodine forms a yellow precipitate of compound 'D'. Identify A,B,C,D. Identify the types of both reaction. Metal present in A is used in making paints.