Margaret makes a square frame out of four pieces of wood. Each piece of wood is a rectangular prism with a length of 40 centimeters, a height of 4 centimeters, and a depth of 6 centimeters. What is the total volume of the wood used in the frame?