Solve the given equation. Enter the exact value of the solution, in simplified form.

2p2=8\displaystyle {2}^{{{p}-{2}}}={8}

p=\displaystyle {p}=