An open rectangular box (no top) with volume 9 cubic meters has a square base. Express the surface area S of the box as a function of the length x of one of the sides.