\(\frac{3x-1}{40-5x}=\frac{25-3x}{5x-34}\)
\(\Rightarrow\left(3x-1\right)\left(5x-34\right)=\left(40-5x\right)\left(25-3x\right)\)
\(\Rightarrow3x\left(5x-34\right)-\left(5x-34\right)=40\left(25-3x\right)-5x\left(25-3x\right)\)
\(\Rightarrow15x^2-102x-5x+34=1000-120x-125x+15x^2\)
\(\Rightarrow15x^2-97x+34=1000-245x+15x^2\)
\(\Rightarrow15x^2=1000-34-245x+97x+15^2\)
\(\Rightarrow15x^2=966-148x+15^x\)
\(\Rightarrow0=966-148x\)
\(\Rightarrow x=\frac{996}{148}=\frac{249}{37}\)