A metal gives two chlorides a and b. a gives black precipitate with nh4oh and b gives white. with ki, b gives a red precipitate soluble in excess of ki. a and b are respectively :