In: Math
By cutting away an x-by-x square from each corner of a rectangular piece of cardboard and folding up the resulting flaps, a box with no top can be constructed. If the cardboard is 6 inches long by 6inches wide, find the value of x that will yield the maximum volume of the resulting box.