B gets 2/3 of all A's money, and B has 48 yuan. B = 48-2/3a;
A+1/2(48-2/3 A) =48.
A +24- 1/3 A =48
2/3 A =48-24
2/3 A =28
A =36 (yuan)
B =48-2/3×36=24 (yuan)