The density of something is just the mass divided by the volume:
D = m/V
The mass of irregular solid, you can measure on a balance or a scale, and the volume is the amount of space the object occupies. You can find the volume of an irregular object by immersing it in water in a beaker or other container with volume markings, and by seeing how much the level goes up.