In beaker A, a reddish brown layer of copper will deposit on the iron nail and the blue coloured solution will become yellowish green. This is because iron is more reactive than copper. So iron replaces copper from the salt to form ferrous sulphate.
On the other hand, no change is observed in beaker B. This is because, copper is less reactive than iron. Hence, no reaction takes place.