Write an equation and solve.
When three times the sum of a number x and seven is increased by ten, the result is four. What is the number?