We know distance is directly proportional to time. As distance increases time taken to cover it also increases if speed is constant.
Ratio of distance and time is a speed which is constant of proportionality for this pair of quantities.
Speed = DistanceTime
For pair 20 km, 4 hr
Speed = 204 = 5 km/hr
For pair 12 km, 2 hr
Speed = 122 = 6 km/hr
For pair 21 km, 3 hr
Speed = 213 = 7 km/hr
For pair 4 km, 0.5 hr
Speed = 40.5 = 8 km/hr
Arrangement of speeds(constant of proportionality) in ascending order of is
(20 km, 4 hr) < (12 km, 2 hr) < (21 km, 3 hr) < (4 km, 0.5 hr)