Total tariff =30000
So, for odd dates (5th,7th, and so on) =1000
And for even dates (6th,8th and so on ) =2000
So, the average amount of money for 2 days is Rs. 1500.
So, the total amount paid =30000
So, the number of days he stayed in the hotel =30000/1500=20.