Multiplying a number by 2 and then adding 5 gives the same number as subtracting a number from 23. What is the number?