we can made a visula representation of the problem so:
So we can made an equation like:
[tex]\begin{gathered} AB+BC=AC \\ 2x-2+3=3x-5 \end{gathered}[/tex]and we can solve for x so:
[tex]\begin{gathered} 2x+1=3x-5 \\ 5+1=3x-2x \\ 6=x \end{gathered}[/tex]