Having difficult time figuring out this "each of n persons pi". In particular, what is "pi"?4-13.  A camera at the door tracks the entry time ai and exit time bi (assume bi > ai) for each of n persons pi attending a party.
Oh, I think, I see. Total party time?
I don't see, though, why it's needed in this context.