Using Percentage Error Formula..
I think that the question means the percentage error (or uncertainty) in mass is 0.5 % and the percentage error in volume is 0.4 %
In that case we apply the uncertainty rules for determining the percentage error in density. The equation for density is:
The second rule for calculating uncertainty applies here, the percentage uncertainty of divided quantities is the sum of the individual percentage uncertainties. That means: