Queueing theory is a branch of mathematics that studies how people move through bottlenecks in a system.