First simplfying from both sides of the equation.
-3(x−1)+8(x−3)=6x+7−5x
(−3)(x)+(−3)(−1)+(8)(x)+(8)(−3)=6x+7+−5x
−3x+3+8x+−24=6x+7+−5x
(−3x+8x)+(3+−24)=(6x+−5x)+(7)
5x+−21=x+7
Second Step subtract from the both sides.
5x−21−x=x+7−x
4x−21=7
Third step add 21 from the both sides.
4x−21+21=7+21
4x=28
Finally step divide both sides of 4.
4x/4=28/4
Answer is x=7