On the way there, you travelled a distance x miles in a time t hours. x/t = 10
On the way back, you travelled a distance x miles in a time T hours. x/T = 15
Overall, you travelled a distance 2x in a time t+T hours, at an average speed of a miles per hour.
a = 2x/(t+T)
Rearranging the first two equations, t=x/10 and T=x/15
Therefore t+T = (x/10)+(x/15) = (3x/30)+(2x/30) = 5x/30 = x/6
Therefore a = 2x/(t+T) = 2x/(x/6) = 12x/x = 12. The overall average speed was 12 miles per hour.
Yet common sense says the answer should be 12.5 miles per hour.
Oh, the mathematical drama of it all.