Explanation:
Density = mass/volume.
Since both samples are metal, we can assume they have the same volume.
Therefore, the sample with the greater mass will have the greater density.
In this case, the 500 g sample of metal will have the greater density.