The volume of the sphere is given by :
V=

And volume of cylinder is given as :
V=

So, as given to select the radius randomly and the height of the cylinder will be the diameter of the sphere.
The radius are = 3, 5, 8, 10, 12
And height will be = 6, 10, 16, 20, 24
1. Volume of sphere with radius 3 =
units
Volume of cylinder with radius 3 and height 6 =
units
2. volume of sphere with radius 5 = 523.60 units
volume of cylinder with height 10 = 785.40 units
3. volume of sphere with radius 8 = 2144.66 units
volume of cylinder with height 16 = 3216.99 units
4. volume of sphere with radius 10 = 4188.79 units
volume of cylinder with height 20 = 6283.19 units
5. volume of sphere with radius 12 = 7238.23 units
volume of cylinder with height 24 = 10857.34 units