A square pyramid has a height of 8 cm and a base with a perimeter of 36 cm. Which is the volume of the square pyramid?
A:216
B:288
C:324
D:648