Translate the sentence into an equation.

Twice the difference of a number and 2 is 6.

Use the variable y for the unknown number.