We can get the density either by converting both the masses and the volumes or we solve them like like that using the formula Density = P = Mass/Volume. After converting both mass and volume, your unit will be in kg/m^3..........Without converting, your unit will be in g/cm^3