A square pyramid can contain 16 m3 of water. The height of the pyramid is 3 m. Calculate the length of base of the square pyramid.