well, let's first find out how much is 30% of 30000

ok, that means if we split that down the middle, each will get 4500.
so the remaining is 21000, and that's split on a 3:4 ratio, assuming from A to B, so let's simply divide the total 21000 by (3 + 4) and distribute accordingly.
