If the base of a square pyramid is 9 centimeters, and it has a volume of 324 cubic centimeters, what is the height of the pyramid?
A 12 cm
B 27 cm
C 14 cm
D 22 cm