the equation is y=2exponent(x)+2 determine the input value if y=34

assuming that by exponent you mean 2^(x)+2

so that
34-2=2^(x)
32=2^(x)
2^5=32
(2^5=2*2*2*2*2)

34=2^5+2