\(=>2^{x-1}-1=24-9\)
\(2^{x-1}-1=15\)
\(2^{x-1}=16\)
\(=>x-1=4\)
\(x=5\)
\(2^{x-1}-1=24-\left[3^2-\left(2021^0-1\right)\right]\\ 2^{x-1}-1=24-\left[9-\left(1-1\right)\right]\\ 2^{x-1}-1=24-\left[9-0\right]\\ 2^{x-1}-1=24-9\\ 2^{x-1}-1=15\\ 2^{x-1}=15+1\\ 2^{x-1}=16\\ 2^{x-1}=2^4\\ x-1=4\\ x=4+1\\ x=5\)