Answer:
The volume of cylinder is 18 cubic inches.
Step-by-step explanation:
It is given that cone fits exactly inside the cylinder. It means the radius and height of cone and cylinder are same.
Let the radius of cone and cylinder be r and height of cone and cylinder be h.
The volume of cone is

The volume of cylinder is

It means the volume of cylinder is 3 times of the volume of cone.

The volume of cone is 6 cubic inches. The volume of cylinder is

Therefore the volume of cylinder is 18 cubic inches.