run command with variable's value as parameter

I have successfully figured out how to do some math in scoreboards and store the results. I would like to then execute a command with that result as the value.

I don't want to give away the game just yet if i don't have to because I think if I state the exact command I want to use, it'll give the whole game away, and I'm planning on showcasing the datapack after I finish it. Instead I'll use tp as an example of what I want to do.

I wanna do something like:

/tp @s ~ ~ <scoreboard math value>

Is there really any way to do this?

Continue to help post