Your distance from the lighting varied directly with time it takes you to hear thunder. if you hear thruder 10 seconds after you see the lighting you are about 2 miles from the lighting
I have to estimate how many seconds it would take for the thruder to travel a distance of 4 miles