A cylinder has a volume of 36 cubic inches. What is the volume of a cone if it has the same radius and height as the cylinder?