h(x) = 3^x

How would you go about solving this question: Solve the equation h-1(x) = 2

Thanks in advance!

You want to find g(x) = h^-1(x)

switch variables and solve for g
x = 3^g
log3x = g
so, h^-1(x) = log3x

^ and log are inverse operators, just like + and - or * and /