It is fairly messy. Basically, you use the move server wizard to move server B into server A's site, then move the mailboxes to the other server. BTW, move server does not move Public Folders, so you need to replicate them first. Plus, you cannot have any connectors on the server being moved...