Optimizing a path by selecting one point per curve

This is a more general way, if branches have different list length

Also for a next step, this might be the type of problem where you want to test something like this (setting up a slider that wraps around itself):