(i) divisors(18)=[1,2,3,6,9,18] and divisors(30)=[1,2,3,5,6,10,15,30].
Common divisors =[1,2,3,6], so gcd(18,30)=6.
(ii) Both routes leave together after a number of minutes that is a multiple of both 18 and 30; the first such time is the lcm.
lcm(18,30)=618×30=6540=90 minutes
90 minutes after 7:00 am is 8:30 am. Check: 90=18×5=30×3.