The answer is: The diameter is 4 centimeters.
The explanation is shown below:
1. The volume of the cylinder is:

Where
is the radius (
) and
is the height (
).
Then:
2. The total volume of the 12 spheres is:

3. The volume of the cylinder and the total volume of all the 12 spheres, are equal, therefore:

4. Now, you must solve for the radius:
![r=\sqrt[3]{(128\pi)/(16\pi)}\\r=2cm](https://img.qammunity.org/2019/formulas/mathematics/high-school/x716xzeztkvzv8qez36ldwowxtbt20ogws.png)
5. The diameter is:
