Two coloured salt solutions of two metals A and B gave precipitates with NaOH and NH4OH. The oxidation states of salts metal A and B are same. On further addition of NH4OH, the precipitate disappears, in the case of B. There is no such change in the case of 'A' either with NaOH or NH4OH. Identify A and B. Give necessary equations :