Let's find the volume of each figure.
The volume of the cylinder is given by:

Where:
r = radius = 4cm
h = height = 6cm
so:

The volume of the cone is given by:

where:
r = radius = 6cm
h = height = 8cm
so:

Since:

The cylinder and the cone have equal volume.