Ответ:

Let's solve this step by step:

1. First, we divide 40 by 5: $$40 : 5 = 8$$.
2. Then, we divide the result by 2: $$8 : 2 = 4$$.
3. Finally, we multiply the result by 9: $$4 \cdot 9 = 36$$.

Answer: 36