Nikita is going to bake a triple layer cake for her friends birthday. She uses a square pan that is 7 inches by 7 inches for each layer. What is the perimeter of the cake in inches?