The volume of the solid rod \[ = \pi \left(\cfrac{r}{2}\right)^2 h \text{ cubic meters} \] The volume of each sphere \[ = \cfrac{4}{3} \pi r^3 \text{ cubic units} \] According to the question, \[ \pi \left(\cfrac{r}{2}\right)^2 h = 6 \times \cfrac{4}{3} \pi r^3 \] \[ \cfrac{r^2 h}{4} = 8 r^3 \] \[ h = 32r \]