The volume of a rectangular box is the length times the width times the height.
The height will be the same length as the squares cut from the corners.
The width and the length of the box both are two of those square lengths cut from the dimensions.
The volume = (25-2x) (14-2x) x
If V = 124, then
124 = (25-2x)(14-2x)(x)
Since this is multiple choice, you can save time by just plugging in all four choices for x into the expression on the right side of the equation. At worst, it will take you four tries.