We know that each escape room is scheduled for 20 minutes. So, if there are 8 participants, then they need 160 minutes, which is equivalent to 2.67 hours.
So, the expression would be
On the other hand, if there are 16 participants, then the hours needed are