To find the number of guides on Sunday, we first need to calculate the ratio of tourists to guides from Saturday.
On Saturday:
- Number of tourists = 120
- Number of guides = 18
We can find the ratio of tourists to guides as follows:
\[ \text{Ratio of tourists to guides} = \frac{\text{Number of tourists}}{\text{Number of guides}} = \frac{120}{18} \]
Now, simplify the ratio:
\[ \frac{120}{18} = \frac{120 \div 6}{18 \div 6} = \frac{20}{3} \]
So, the ratio of tourists to guides is \( \frac{20}{3} \).
On Sunday, we know there were 40 tourists. Let's denote the number of guides on Sunday as \( g \). The ratio of tourists to guides on Sunday should also be \( \frac{20}{3} \):
\[ \frac{40}{g} = \frac{20}{3} \]
To find \( g \), we can cross-multiply:
\[ 40 \cdot 3 = 20 \cdot g \]
This simplifies to:
\[ 120 = 20g \]
Now, divide both sides by 20:
\[ g = \frac{120}{20} = 6 \]
Thus, the number of guides on Sunday is \( \boxed{6} \).