Write an equation for the following:
“Three times the sum of a number and four is the same as eighteen more than the number.”