A rectangular piece of cardboard with dimension 12 cm by 24 cm is to be made into an open box (i.e., no lid) by cutting out squares from the corners and then turning up the sides. Find the size of the squares that should be cut out if the volume of the box is to be a maximum.