Solved! When I ran the macro, I got 90 answers. But when I tried to do it myself, I got 107. Since there are 13 pages of solutions, 107 seemed plausible so I went with that (and capped it at $2k)
After I picked my initial items, I totaled what was leftover in both categories and checked to see if that total would let me buy one more item, which it did.