Samantha is thinking of a number. She adds 5 to this number and then multiplies the result by 2. The final result is 24. What is the number Samantha is thinking of?