I interpret this to mean that the printed area plus the margins must be 100 in2., i.e. LW=100
The printed area A=(L-2)(W-4)
Substitute W=100/L.
This gives a quadratic to be minimized: 4L2-108L+200.
The derivative is 8L-108.
You fill in the derivation of the quadratic and finish the problem from here.