3 hours = 3 x 60 = 180 min, then
40 people ---> 20 min
x ----------------> 180 min
[tex]\begin{gathered} x\times20=40\times180 \\ 20x=7200 \\ \frac{20x}{20}=\frac{7200}{20} \\ x=360 \end{gathered}[/tex]answer 1: 360 people in 3 hours
[tex]\frac{360}{3}=120[/tex]answer 2: 120 people per hour