Answer
$-2$
Work Step by Step
Note that $a^y = b \text{ is equivalent to } y = \log_a b$.
Thus,
$5^{-x}=25\\
\longrightarrow -x = \log_5 25\\
-x=\log_5{\left(5^2\right)}$
Recall:
$\log_a a^r =r$
Hence,
$\log_5 5^2 = 2$
Therefore,
$-x = 2\\
x=-2$