The phenomenon is called corrosion. The black coating is silver sulphide (Ag2S) formed due to the reaction of H2S gas present in the atmosphere with silver and the green coating is basic copper carbonate formed due to the reaction of moist air (CO2, O2 and H2O vapours) with copper.
2AgSilver+H2SHydrogensulphide→Ag2SSilversulphide(Black)+H2Hydrogen
2CuCopper+CO2+O2+H2OFrommoistair→CuCO3+Cu(OH)2Basiccoppercarbonate(green)