Samantha is thinking of a number. She adds 8 to this number and then multiplies the result by 3. If the final result is 33, what is the number Samantha is thinking of?