Hope this isn't something trivially wrong, I am a beginner in classical mechanics. But anyways, say there is a cube, of side length $a \ \text{cm}$. The volume of the cube is $a^3 \ \text{cm}^3$. If the total mass of the cube is $m \text{ kg}$, the density of the cube will be $\frac{m}{a^3} \text{kg/cm}^3$. Again, consider the cube as the combination of many square plates of negligible thickness. If the mass of each is $m_2 \ \text{kg}$, their density will be $\frac{m_2}{a^2} \ \text{kg/cm}^2$. Here's the question: we found the density in two ways, and their dimensions don't match. I think I know why this happens- we are finding the density of the cube by integrating the densities of each plate. But how would you answer the following question?
The density of a cube is $X \text{ kg/cm}^3$. Find the density of each square plate.
Again, I am sorry if this is something trivial, I am a novice. :)