Calculate: 5x-12=-x-36

Expression: $5x-12=-x-36$

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

$5x-12+x=-36$

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

$5x+x=-36+12$

Collect like terms

$6x=-36+12$

Calculate the sum

$6x=-24$

Divide both sides of the equation by $6$

$x=-4$