Explanation:
In this case, iron, being more reactive than copper, will displace it from the solution. That is, ferrous ions or Fe(II) will go into the solution, while Cu(II) will be deposited onto the nail. This cause the solution color to change from blue to green.