Metal 'M' is iron: it is the metal protected by galvanisation (a coating of zinc), and its corrosion is called rusting.
Tube A (water and air): the iron nail rusts; a brown flaky coating forms. Reason: it is exposed to both air (oxygen) and water.
Tube B (boiled distilled water covered with oil): the nail does not rust. Reason: boiling has removed the dissolved air and the oil layer stops air from dissolving again, so there is water but no air.
Tube C (anhydrous calcium chloride): the nail does not rust. Reason: anhydrous calcium chloride absorbs the moisture, so the air in the tube is dry; there is air but no water.
So iron rusts only when both air and water are present. Galvanisation coats iron with a thin layer of zinc, which keeps air and water away from the iron.

The three-tube activity: iron rusts only where it meets both air and water.