The correct option is A Both A and R are true and R is the correct explaination of A.
For a metal to replace another metal from its solution, it has to be more reactive than the other.
The arrangement of metals as per reactivity series is: K > Na > Ca > Mg > Al > Zn > Fe > Pb > H > Cu > Ag > Au.
While magnesium being more reactive than aluminium will displace it from its salt solution.