The triangles are similar according to the question. Therefore, the following ratio can be formed
[tex]\begin{gathered} \frac{25}{20}=\frac{4x-23}{2x+2} \\ \text{cross multiply} \\ 25(2x+2)=20(4x-23) \\ 50x+50=80x-460 \\ 50x-80x=-460-50 \\ -30x=-510 \\ x=\frac{-510}{-30} \\ x=17 \end{gathered}[/tex]