The perimeter of the base of a right square pyramid is 48 cm. The height of the pyramid is 12 cm. What is the volume of the pyramid?