A couple of ways (and answers) to look at this
toatl distance travelled = 90 + 40 = 130 m
total time = 20 s 130/20 = 6.5 m/s avg
If you are looking at how far away the car got from the starting point (using vectors)
90 - 40 = 50 meters from start and it took 20 seconds 50/20 = 2.5 m/s avg