Write an equation and solve.
When two times the difference of a number x and three is increased by five, the result is nine. What is the number?