solve the two queues into one queue