So you want to merge just some changesets from B into A? Backing out changesets like you have been doing is a really bad idea as you have already suffered.
You should either use the transplant extension or have a third branch where you make common changes to merge into both A and B.