First backup both libraries
Then you need both libraries on one computer. Easier if you name one a different name.
Then in preferences>adding books make sure automerge is selected.
Open each library (not necessary but puts in list)
select all books in one library, right click and select copy to libraryand clickon name of library(delete after copy) to copy to.
And it is done.
Again back up first please
Helen