A regular square pyramid is 3 m height and the perimeter of its base is 16 m. Find the volume of the pyramid.