If 4 is subtracted from twice a number, the result is 10 less than the number. Write an equation to solve this problem. Use n as the variable to represent the number.