In fact, it is to find the least common multiple of 30 and12,60. So two nurses registered and five doctors saw a doctor. But if there are more than 60 patients per hour, there is still a queue.
So the problem of this topic, I think, is how many doctors should be arranged at least to keep registered patients from queuing.