Write and solve the equation/expression written below:
Three times the sum of a number and 4 is the same as 18 less than a number.