Retarget animation between two different skeleton Heirarchies?

Hello,

I need some help in retargeting the animation between two different skeleton heirarchies. it would be really helpful if someone could help me with some solution or idea. i have tried rokoko but unfortunately it didn’t work.
Thank you very much for your time