GOC14 Explanation regarding BALL ROOM ?

I didn’t quite get what the question was asking.

Also the accepted solutions all looked kinda same.

Can anyone please explain what the question was asking and how to approach these types of problems?