Answer:
808
Explanation:
The volume of the initial cylindrical metal must be equal to the total volume of the cubes.
Let the number of cubes made be x. Therefore:

where
volume of the cylinder
volume of each cube
Each of the cubes have sides of length 3 cm.
The volume of a cube is given as:

where L = length of side of cube
Therefore, the volume of each cube is:

The volume of a cylinder is given as:

where r = radius
h = height of the cylinder
The volume of the cylinder is:

Therefore:
21823.55 = 27 * x
=> x = 21823.55 / 27
x = 808.27
Since the number of cubes can only be a whole number, the number of cubes that will be made is 808.