$2.(x-5)-(3x-1)=5$
$⇒2x-10-3x+1=5$
$⇒-x-9=5$
$⇒-x=-4$
$⇒x=4$
$|2x-5|-7=22$
$⇒|2x-5|=29$
$⇒$ \(\left[ \begin{array}{l}2x-5=29\\2x-5=-29\end{array} \right.\)
$⇒$ \(\left[ \begin{array}{l}2x=34\\2x=-24\end{array} \right.\)
$⇒$ \(\left[ \begin{array}{l}x=17\\x=-12\end{array} \right.\)