Density = Mass / Volume
1. Mass: 40 g
2. Volume: 20 cm³
Density = 40 g / 20 cm³ = 2 g/cm³
Therefore, the density of the object is 2 g/cm³.