-problems on pairs, queues and tables