(a) Density of substance = mass of substancevolume of substance
(b) For material A:
Mass = 5 kg
Volume = 20 cm3=20×10−6m3
Density of material A = 520×10−6=0.25×106kg/m3
For material B:
Mass = 20 kg
Volume = 90 cm3=90×10−6m3
Density of material A = 2090×10−6=0.22×106kg/m3
Density of material A is more than density of material B.