Question 38636
Data:

v = 331m/s speed of sound
t = 12 second time take by the sound to arrive to Joe
d = x distance from Joe to the lightning flash.

Above we have the data that will be used to find the distance.
Formula:
{{{d=v*t}}}
This is the formula to find the distance given the speed and the time.
Using the data we have:

{{{d = 331*12}}}
{{{d = 3972}}}

Answer: The lightning flash is 3972 meters away from Joe.