A metal cube of mass 17.5kg measures 0.5m. Calculate its density

as always, density = mass/volume

volume is in m^3, not just m

volume = l x w x h = 0.5 x 0.5 x 0.5 = 0.125 m^3

mass = 17.5 kg
density = mass/volume