Sarah is thinking of a number. After she subtracts 3 from this number, she multiplies the result by 2 and gets 18. What is the number that Sarah is thinking of?