-38=7w+17-12w

First, combine like terms on the right side of the equation:

-38 = -5w + 17

Next, isolate the variable by subtracting 17 from both sides:

-55 = -5w

Finally, solve for w by dividing both sides by -5:

w = 11