The formula of a volume os a cylinder:

r - radius
H - heihgt
The formula of a volume of a cone:

r - radius
H - height
If a cylinder and a cone have the same radius and height then the volume of a cone is three times smaller than a volume of a cylinder.
Therefore

We have

Substitute:

Answer: The volume of a cone is 24 in³.