According to the facts, if18kg gasoline is poured from barrel A into barrel B, barrel B is exactly 1.5 times that of barrel A. ..
1.5 *(x+ 18)= 2.5x- 18,x=45,2.5x= 1 12.5。
So A has 1 12.5 kg, and B has 45 kg.