Giải:
Đặt \(\frac{x}{2}=\frac{y}{5}=\frac{z}{7}=k\)
\(\Rightarrow x=2k,y=5k,z=7k\)
Ta có: \(A=\frac{x-y+z}{x+2y-z}=\frac{2k-5k+7k}{2k+2\left(5k\right)-7k}=\frac{k\left(2-5+7\right)}{2k+10k-7k}=\frac{k4}{\left(2+10-7\right)k}=\frac{4}{5}\)
Vậy \(A=\frac{4}{5}\)