7 times a number x is equal to 18 less than the number x. Write and solve an equation to find the number.