We have been given that a sphere and a cylinder have the same radius and height.
We know that height of sphere is equal to its radius. So
.
Now we will use volume of sphere and volume of cylinder formula to solve our given problem.
Volume of cylinder:
, where,
r = Radius,
h = Height
Volume of sphere:
, where,
r = Radius.
Since height is equal to radius, so we will get:

Since volume of cylinder is
cubic cm, so we will equate volume formula with
as:

Let us solve for r.

![r=\sqrt[3]{(18)/(\pi)}](https://img.qammunity.org/2021/formulas/mathematics/middle-school/l99805n6njlwizgpa28dg0styhvgq15rfb.png)
Upon substituting this value in volume of sphere formula, we will get:
![V=(4)/(3)\pi\cdot \left(\sqrt[3]{(18)/(\pi)}\right)^3](https://img.qammunity.org/2021/formulas/mathematics/middle-school/n4vajh1xu1ceh43jak09tn7an1e5sdypm1.png)



Therefore, the volume of the sphere would be 24 cubic cm and option B is the correct choice.