The salt which gives a dirty green precipitate with NaOH solution and a white ppt. with BaCl2 solution is:
Ferrous sulphate reacts with NaOH and gives green ppt of Fe(OH)2
FeSO4+2NaOH→Fe(OH)2+Na2SO4
Ferrous sulphate reacts with BaCl2 and gives white color barium sulphate ppt