If 3 is subtracted from twice a number, the result is 8 less than the number. Write an equation to solve this problem.