Have you posed the wrong question?
Density is an intensive property rather than an extensive property. The density of a 3.5 kg block IS PRECISELY THE SAME as that of the 2 kg block; its mass is obviously different, and given that they have the same densities (mass per unit volume), its volume will also be different.
What are the VOLUME of both blocks? Will they be the same?