Thank you, got it.
I also was able to move the content from one site to another. I am writing the process so that it can help others.
1. install H5P in the new site.
2. copy the h5p folder with all files from the old site, this folder can be found here wp-content/uploads.
3. Replace the h5p folder in the new site by the old site’s h5p folder.
4. Export all h5p tables from the old site’s database. the tables are started with the prefix *_h5p_
5. Import the tables in the new site’s database. (maybe, you need to delete the h5p tables on the new database before import.)
6. Check, Everything should be OK.