Translate the sentence into an equation.

Twice the difference of a number and 5 equals 3.

Use the variable x for the unknown number.