The area of a trapezoid is 18sq. ft and the sum of its bases is 6 ft. Find the area of a square whose side is equal to the height of the trapezoid.