The pyramid shown has a square base that is 12 inches on each side. It has a surface area of 336 square inches. What is the slant height?