Answer:
12
Step-by-step explanation:
avarage speed = total distance/total time
our total distance is 40km
the first 20km speed was 20km/h, so the time os 1 hour here
for the next 20km, we dont have the time, so let the time here be = x
so total time is x+1 km/h
and total distance is 40km
and the avarage is 24km/h
so =>

solve for x to find the time in the second 20km
so x=0.6
then find the speed of the second 20km by diving the distance on time =>

so the speed in the second 20km is 12km/h