A square sheet of cardboard with side length 24 in is to be made into an open-top box by cutting equal squares of side x inches from each corner and folding up the sides. For which value of x is the volume of the box greatest?
a) 8 in
b) 2 in
c) 4 in
d) 6 in