And I got part 2! Got an assist from ChatGpt. I needed a function that would get every unique set of half the valves. Not gonna lie, hated what it gave me, ugly AF, but it helped. I split the valves into sets, then added the results of disjoint combos. Sets ftw again!