The speed at the beginning is 20 m/s.
The speed at the end is 40 m/s.
The average speed is 1/2(20 m/s + 40 m/s)
That's 30 m/s .
The length of time for the change doesn't matter, as long as the change is uniform.
1.6m questions
2.0m answers