Solve this math problem

Solve 277 = -8*x + 261 for x.
-2