An open box is contructed from a 10 inch square piece of cardboard by cutting squares of length x out of each corner and folding up the sides. Express the volume of the box as a function of x and state the domain.

Can someone please explain to me how to do this?