An open box is made from a rectangular piece of cardboard by cutting equal squares from each corner and turning up the sides. Write the volume of the box as a function of x if the material is 20 inches by 12 inches. What is maximum volume of the box?

This was one problem that stumped me alot.

Thank you!!