Find the inverse of the function.

f(x) = e^-x + 5

f(x) = 10^x + 2

original function:

y = e^-x + 5
inverse function:
x = e^-y + 5
e^-y = x-5
ln (e^-y) = ln(x-5)
-y = ln(x-5)
y = -ln(x-5)

f^-1(x) = -ln(x-5)

do the same for your second question, but make sure you use log instead of ln