a) \(25\le5^x\le125\)
\(\Rightarrow5^2\le5^x\le5^3\)
\(\Rightarrow x\in\left\{2;3\right\}\)
b) \(7.7^{x+1}=343\)
\(\Rightarrow7^{x+1}=343\div7\)
\(\Rightarrow7^{x+1}=49\)
\(\Rightarrow7^{x+1}=7^2\)
\(\Rightarrow x+1=2\)
\(\Rightarrow x=2-1\)
\(\Rightarrow x=1\)