Three $$12\times 12$$ squares are each cut into two pieces A and B, as shown in the first figure below, by joining the midpoints of the two adjacent sides. These six pieces are then attached to a regular hexagon, as shown in the second figure, so as to fold into a polyhedron. What is the volume of this polyhedron?

(第三届AIME1985 第15题)