Calculate: 5x+18=-2+3x

Expression: $5x+18=-2+3x$

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

$5x+18-3x=-2$

Move the constant to the right-hand side and change its sign

$5x-3x=-2-18$

Collect like terms

$2x=-2-18$

Calculate the difference

$2x=-20$

Divide both sides of the equation by $2$

$x=-10$