The unchanging relation between the mass of an object, its volume and density of the material, is given by m=dv.
If the weight of an object is w, its volume is v and if it is made of a material of density d, then their relation can be written as