Fitting boundaries

Hi, anyone knows how to make multiple boundaries with a fixed area fit into a fixed boundary? Something similar like a puzzle.