For the first case where the charge is Rs. 60 per hour, the total cost for renting for 5 hours is:
\[
60 \times 5 = 300.
\]
For the second case, the total cost is Rs. 7.5 per kilometre, so:
\[
7.5 \times 30 = 225.
\]
Thus, the cost for driving 30 km and renting for 6 hours is Rs. 300. Hence, the total time is 6 hours.