I am struggling to come up with something but I am not even close. Didn't find any clue online too. It seems like Bipartite Matching, but it would be great to have any hints, if it's a well known algorithm, few links with similar problems would be helpful. Thanks!
Show admin stats