Calculate: x-7x=40-8x

Expression: $x-7x=40-8x$

Collect like terms

$-6x=40-8x$

Move the variable to the left-hand side and change its sign

$-6x+8x=40$

Collect like terms

$2x=40$

Divide both sides of the equation by $2$

$x=20$