This is /tp: No, it’s not like /xp. /tp teleports you somewhere like, /tp (player) (player). If you do that, it will teleport the first person to the second person. This is useful if you are lost and cannot find the way back.
There is another way too. If you remember the coordinates, which can be turned on using /gamerule showcoordinates true or going into settings scrolling nearly all the way down and turn the “Show Coordinates” under the “game features.” Back to what I was talking about earlier. So, you can do /tp (player) ~ ~ ~ the ~ = coordinates. And it will tp the person to that coordinate.