Connecting The Dots: What the Knapsack Problem Can Teach Us About Capital Allocation