Answer: The speed of sound in air depends on temperature, pressure, and humidity. For dry air at 26°C, the speed of sound is approximately 346 meters per second.
Let's call the distance between you and the fireworks "d". We can use the fact that the time it takes for the sound to reach you is 2.5 seconds longer than the time it takes for the light to reach you:
d = speed of sound x time delay
d = 346 m/s x 2.5 s
d = 865 meters
Therefore, the distance between you and the fireworks is approximately 865 meters.