Hello, I am trying to solve the problem "It can be arranged" (link), but I can't seem to think of any solution. I would appreciate a hint as to how to approach the problem. I've been trying to model it as a matching problem, but can't seem to come up with anything. Thanks in advance.