You don't differentiate the volume equation. You are not trying to minimise the volume. You are trying to minimise the amount of sheet metal needed to make the trailer, so you want to minimise the SURFACE AREA. Can you get an equation for the surface area in terms of x?