where x is the width of the paper and y is the height.
Now taking into account of the margins, the area required is:
100 = (x-2)(y-8)
What you want to do is to express x as a function of y or vice versa from the second equation, and then substitute into the first equation. Then you can differentiate to find the minimum area required.