The cross-section of a prism is a triangle with sides 3 cm, 5 cm, and 7 cm. If the prism is 12 cm long, find its volume.