You will be given a definition of a task first, then some input of the task.
The task is to generate the correct answer for a given math problem.

Problem: 12 spheres of the same size are made from melting a solid cylinder of 8 cm diameter and 27 cm height . what is the diameter of each sphere ?
Output:
6 cm