Volume of a cylinder is:
V = B H
where
H is height of a cylinder
B is surface area of the base of a cylinder (base has shape of circle):
B = D^2 pi / 4
V = D^2 H pi / 4
H = 4 V / (D^2 pi)
H = 4 x 342 / (6^2 x pi) = 38 / pi
If we calculate with value pi = 3.14, then
H = 38 / pi = 38 / 3.14 = 12.10cm
If the distance between the shelves is exactly 36 cm, number of soup cans that can be stacked is:
36 / 12.10 = 2.975
We need a closest integer (whole number) that is smaller that this result, so the answer is:
Two cans can be stacked.