We want to solve the equation:
[tex]4x-18=7x-40[/tex]First of all, Subtract 7x from both sides:
[tex]\begin{gathered} 4x-18-7x=7x-40-7x \\ 4x-7x-18=-40 \\ -3x-18=-40 \end{gathered}[/tex]Next, add 18 to both sides:
[tex]\begin{gathered} -3x-18+18=-40+18 \\ -3x=-22 \end{gathered}[/tex]Divide both