A concrete foundation for a building has the shape of a rectangular prism. The foundation is 3 yards long, 14 yards wide, and 3 yards high. If concrete costs $4 per cubic yard, how much did the concrete cost for the foundation?

The cost of the concrete for the foundation is $504. ($4 x 3 x 14 x 3 = $504)