This is an interview question. We are given dimensions of various rectangles, we have to find out the area(minimum) of rectangle that can enclose all of them? rectangles
There is no absolute solution to this problem, but there are several approximate solutions, you can read about some of them here.