Need to translate words into an equation.
The difference of X and 5 translates to "X-5"
Twice the difference of X and 5 then translates to 2 * (X-5)
"is" translates to "=", so twice the difference of X and 5 then translates to
2(X-5) = -34
Multiplying out the left side of the equation:
2X - 10 = -34
Adding 10 to both sides of the equation:
2X = -24
Dividing both sides of the equation by 2:
X = -12