Step by step equation:
-6x + 5 + 2 = -17 → we solve for 5 + 2
-6x + 7 = -17 → we take 7 to the right side of the equation
-6x = -17 - 7 → we solve for -17 - 7
-6x = -24 → we take -6 to the right side of the equation
x = -24 / -6 → we solve for -24 / -6
x = 4 → final answer
Hope it helped,
BioTeacher101