The power of x

Find the value of $x$ in this equation, where it appears in powers.

Problem



Find the value of $x$, where $$2^{x+1}-2^{x-1}=12$$

This problem is adapted from the World Mathematics Championships