how to detect Minecraft trident owner using commands?

I am trying to make a grappling hook using tridents by detecting if they are on the ground and then teleporting the owner to the trident. I got everything to work except for the teleportation section. Any support, even if it involves using a different method, would be appreciated.

Continue to help post