Two identical rectangular prisms each have a height of . The base of each prism is a square, and the surface area of each prism is . If the prisms are glued together along a square base, the resulting prism has a surface area of . What is the side length, in , of each square base?