Answer: 7 days.
Step-by-step explanation:
Let the number of days agent spent in Australia be x.
Then, Number of days he spent in New Zealand = 3x
and number of days he spent in India = x+5
According to the question we have the following eqauation,
[tex]x+3x+x+5=40\\\\\Rightarrow\ 5x+5=40\\\\\Rightarrow\ 5x=40-5\\\\\Rightarrow\ 5x=35\\\\\Rightarrow\ x=\dfrac{35}{5}=7[/tex]
Hence, he spent 7 days in Australia.