Place all squares and rectangles with constraints and weights such that the 2D area taken by the shapes is the smallest. The shapes can be placed on top/bottom side of the surface on which they would be placed. The shapes can be rotated to provide smallest wire length relation between them. More details would be provided once you indicate your interest.
Note: This is not a web development task. Read the document before applying.