Density =If the volume is constant (the same), the higher the mass, the higher the density since volume is dividing.
Convert all the masses to the same unit and pick the product with the highest mass.
Let's change all the masses to grams ( g )
To change kilogram (kg) to gram, you must multiply by 1000
To change milligram (mg) to gram, you must divide by 1000
Product
X mass
=0.05kg=0.05×1000g=50gProduct
Y mass
=50mg==0.05gProduct
Z mass
=500gProduct
W mass
=0.05gThe highest mass is 500 g for product
Z, hence product
Z will have the highest density.