Storing coordinates for later use?

I am making a /trigger market that teleports the player to a shop for my server but i want to make it so that they can use a /trigger back to go back to their original location. how would i store their location so they can teleport back to their original place with /trigger back?

Continue to help post