go to Network Solution using company B's ID and update the ownership records
then at the same place you can point those domain names to Company A's IP addresses
it is all done using Network Solution's infrastructure. you just have to tell them what you want to do
the only thing to check with them is if there are any registration processes involving mergers