There are two ways to wrap the paper around the can.

In case A, the circumference of the can = 19 cm
In case B, the circumference of the can = 29 cm
circumference = π * diameter → diameter = circumference / π
In case A, the diameter = 19 / π ≈ 6.05 cm
In case B, the diameter = 29 / π ≈ 9.23 cm