Attach Animated mesh in socket

Hello, i cant figure out how to attach an animated mesh into the socket of another animated mesh and sync both animation, anyone can help me out?? thank you!