To displace hydrogen from dilute acids (like HCl), a metal must be {more reactive than hydrogen}.
This means the metal must be {above hydrogen (H)} in the reactivity series.
% Option
(V) Mg: Above H (Yes, displaces)
% Option
(W) Ag, Au, Cu: Below H (No, do not displace)