Step 1 :Divide both sides by 2: \(\log _{x}\left(\frac{1}{32}\right)=-\frac{5}{2}\)
Step 2 :Rewrite the equation in exponential form: \(x^{-\frac{5}{2}}=\frac{1}{32}\)
Step 3 :Solve for x: \(x = \boxed{4}\)