What is the functions called? I'm not sure I understand your question. The first function is called f, and the second function is called the inverse of f.
There are infinitely many functions that satisfy the conditions f(8) = -23 and f^(-1)(-25) = 3, so there is no special name for such functions.