Let time taken to travel the first half = x hr
Then time taken to travel the second half = (10 - x) hr
Distance covered in the the first half = 21x [because, distance = time×speed]
Distance covered in the the second half = 24(10 - x)
Distance covered in the the first half = Distance covered in the the second half
So,
21x = 24(10 - x)
⇒ 45x = 240
⇒ x = 16/3
Total Distance = 2×21(16/3) = 224 Km [multiplied by 2 as 21x was distance of half way]