Let y be the time it takes to hear the thunder and let x be the distance from the lightning. The distance you are at will affect how long it takes you to hear the thunder. Thus, your location directly affects how long it takes you to hear thunder.
comparing the speeds of light and sound
It works because lightning's light moves through the atmosphere considerably more quickly than thunder's sound. Light is slightly slowed down by air, but only by around 56 mph (90 km/h). No matter where you are on Earth, its speed is still quite near to 186,000 mph (3 x 108 m/s). Air has a greater impact on sound speed than light speed. Sound travels through air at a variable speed. With speeds ranging from roughly 760 mph (340 m/s) to 720 mph (320 m/s), sound travels more slowly at higher altitudes because sound travels faster through warmer air than colder air.
LEARN MORE ABOUT thunder varies HERE:
https://brainly.com/question/13650877
#SPJ4