Translate the sentence into an equation.
Twice the difference of a number and 5 is 7.
Use the variable x for the unknown number.