3 raised to (4x + 2) minus 32 equal 8

3^(4x+2) - 32 = 8

3^(4x+2) = 40
now take log of both sides to get
(4x+2)log3 = log40
4x+2 = log40/log3
4x = log40/log3 - 2
x = (log40/log3 - 2)/4
x = ...

let me know what you got