Dear Student ,
We know that the density of a material is ,
Now from the Archimedes principle let a body of weight W1 in air is immersed in a liquid of density then after fully immersing the body in the liquid the weight of the body becomes W2 .
Now the volume of the liquid displaced is , = volume of the body .
Now the density of the body is ,
Regards