Final answer:
To determine the location of the lightning, we calculate the time it took for the sound to travel the 4 miles between you and your friend. Using the speed of sound, we find that the time is 17.87 seconds.
Step-by-step explanation:
To determine the location of the lightning, we first need to calculate the time it took for the sound to travel the 4 miles between you and your friend. Sound travels at a speed of 1100 feet per second. Since the distance is 4 miles, we need to convert it to feet by multiplying it by 5280 (1 mile = 5280 feet). The distance between you and your friend is then 4 miles * 5280 feet/mile = 21120 feet.
Next, we calculate the time it took for the sound to travel this distance. You heard the sound 18 seconds before your friend did, so we subtract 18 seconds from the total time. The time is then 18 seconds.
Finally, we divide the distance by the time to find the speed of sound. Speed equals distance divided by time, so the speed of sound is 21120 feet / 18 seconds = 1173.33 feet per second.
Since the speed of sound is 1173.33 feet per second, we can calculate the time it took for the sound to travel 4 miles using this speed. The time is distance divided by the speed, so the time is 4 miles * 5280 feet/mile / 1173.33 feet per second = 17.87 seconds.