Translate the sentence into an equation.

Twice the difference of a number and 5 equals 6
Use the variable w for the unknown number.

The equation would be:

2(w-5) = 6