Maria is thinking about a number, which she calls x. If she subtracts 4 from x and then multiplies the result by 3, she gets 18. We can write this situation using the equation:
$$3(x - 4) = 18$$
What is the value of x?