Time = 18 seconds
Divide the time by 5 to get lightning distance in km.
lightning distance = 18/5
lightning distance = 3.6 km.