It takes 6 cubic inches of colored sand to fill a plastic cone. How many cubic inches will it take to fill a plastic cylinder with the same base and height as the cone? 

A.18
B.24
C.2
D.12