Largest box that can be made from rectangular cardboard

Problem
Mar wants to make a box with no lid from a rectangular sheet of cardboard that is 18 inches by 24 inches. The box is to be made by cutting a square of side x from each corner of the sheet and folding up the sides. Find the value of x that maximizes the volume of the box.

A.   4.3 inches C.   10.6 inches
B.   5.2 inches D.   3.4 inches