$2x-6-\left( x-2 \right)=5$
When there is a $-$ in front of an expression in parentheses, change the sign of each term of the expression and remove the parentheses$2x-6-x+2=5$
Collect like terms$x-6+2=5$
Calculate the sum$x-4=5$
Move the constant to the right-hand side and change its sign$x=5+4$
Add the numbers$x=9$