Then18 = x1.5+(x-1) (1.5+2/3), that is, the sum of the distances traveled by both sides is the total distance.
So x=6, x- 1=5.
So the speed of A is 6 km/h and the speed of B is 5 km/h. ..