Three doctors, Dr. Ben, Dr. Kane and Dr. Wayne, visit a clinic Monday to Saturday to see patients. Dr. Ben sees each patient for 10 minutes and charges Rs. 100. Dr. Kane sees each patient for 15 minutes and charges Rs. 200. Dr. Wayne sees each patient for 25 minutes and charges Rs. 300. The rooms are assigned as follows:
| Room No. | Monday and Tuesday | Wednesday and Thursday | Friday and Saturday |
|---|
| 1 | Ben | Wayne | Kane |
| 2 | Kane | Ben | Wayne |
| 3 | Wayne | Kane | Ben |
The clinic is open from 9 a.m. to 11:30 a.m. every Monday to Saturday. On arrival, each patient receives a numbered token indicating their position in the queue, starting with token 1 each day. As soon as a doctor becomes free, the next patient in the queue enters that room. If more than one room is free, the waiting patient enters the room with the smallest number. For example, if the next patients have tokens 7 and 8 and rooms 1 and 3 are free, token 7 enters room 1 and token 8 enters room 3.