Then the distance is equal:
10X= 15Y
The solution is Y=2X/3.
The average speed is:
(10x+15y)/(x+y) = 20x/(x+2x/3) =12 (km/h)