Respuesta :

[tex]-31=3w+9-8w\\\\-5w+9=-31 \ \ /-9\\\\-5w=-40 \ \ /:(-5)\\\\\huge\boxed{w=8}[/tex]