Maria is thinking of a number. She adds 3 to this number and the result is 9. This situation can be expressed with the equation:
$$x + 3 = 9$$
What is the value of the number that Maria is thinking of?