\(\frac{3x-1}{40-5x}=\frac{25-3x}{5x-34}\)
\(\Leftrightarrow\left(3x-1\right).\left(5x-34\right)=\left(40-5x\right).\left(25-3x\right)\)
\(\Leftrightarrow15x^2-102x-5x+34=1000-120x-125x+15x^2\)
\(\Leftrightarrow-102x-5x+120x+125x=1000-34\)
\(\Leftrightarrow138x=966\)
\(\Leftrightarrow x=966:138\)
\(\Leftrightarrow x=7\)