A movie theater sells popcorn in bags that open to form similar prisms, as shown. The large bag has a volume of 576 cubic inches. The small bag is 12 in tall and the large bag is 16 in tall. What is the volume of the small bag?