The base of a pyramid is a rectangle with a length of 3 centimeters and a width of 6 centimeters. If the height of the pyramid is 12 centimeters, what is the volume of the pyramid?