A right square pyramid has a base with a perimeter of 36 cm and a height of 12 cm. At one-third of the distance up from the base to the apex, the pyramid is cut by a plane parallel to its base. What is the volume of the top pyramid?