The North Pole delivery centre is retiring the sleigh and moving to drones. The first trial run has only two drones, and each drone has a limit on the weight it can carry.
You are given a list of candidate presents. Every present has a weight and a value, and the value is an integer in thousands of dollars. Choose presents and split them between the two drones so that the total value carried is as large as possible. A present cannot be cut apart, and one present cannot be shared by the two drones. Leaving presents behind is allowed.
The weights loaded onto a drone must sum to at most that drone's limit. Find the largest total value you can achieve.