To calculate the average speed, you can use the formula:
\[ \text{Average Speed} = \frac{\text{Total Distance}}{\text{Total Time}} \]
In this case, the total distance is 20 meters and the total time is 40 seconds.
Now plug in the values:
\[ \text{Average Speed} = \frac{20 , \text{m}}{40 , \text{s}} = 0.5 , \text{m/s} \]
So, the swimmer's average speed is 0.5 m/s.