application of derivatives:

an open box is to be made by cutting small congruent squares from corners of a 12cm by 12cm . sheet of tin and bending up the sides . how large should the squares cut from the corners to be make the box hold as much as possible ?