Let's call the total distance 2a from which we can calculate t1 equivalent to the first half of the distance a/10 similar to t2 is a/15 from which the total time is a/6 . We have the average speed equal to the total distance dduowcngf divided by the total inferred time by 2a/(a/6) which equals 12km/h